Category : offloading

I want to compile C code with OpenMP offloading and create a dynamic library libtest.so. When I use the following command: gcc -fPIC -shared -fopenmp -foffload=nvptx-none="-fPIC" test.c -o libtest.so I get this error: /usr/bin/ld: /tmp/ccWnqb5o.target.o: relocation R_X86_64_32 against `.rodata’ can not be used when making a shared object; recompile with -fPIC collect2: error: ld returned ..

Read more