...
Code Block |
---|
$ cc -fopenmp -c main.c
$ cc -o main main.o -fopenmp -L/usr/local/mylib/libs -l<library-name> |
To compile openACC enabled code or MPI+openACC enabled code, use -fopenmp flag during compilation
Code Block |
---|
cc -fopenmpfopenacc -c main.c $ cc -o main main.o -fopenacc -L/usr/local/mylib/libs -l<library-name> |
...