The installed version of gcc on my machine is 4.1.2. I tried to install gcc 4.2 but the disk quota exceeded. I checked with cs lab and they said gcc 4.2 is currently installed under /s/gcc-4.2.1/bin and /s/gcc-4.2.2/bin.
Bryan and I figured out how to run programs using OpenMP. We succeeded in a simple hello.c program, as shown below.
% /s/gcc-4.2.2/bin/gcc -fopenmp hello.c -o hello.o
% hello.o
Hello World from thread 1
Hello World from thread 0
There are 2 threads
We will continue to work on other examples to get familiar with OpenMP.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment