Hello,
I am trying to compile the sgemm.cuf example in the pgi/…/etc/samples directory.
When compiled with pgfortran sgemm.cuf , it compiles and runs successfully.
When compiled with pgfortran -O2 sgemm.cuf , it compiles, but it throws the following error at runtime:
Device:GeForce 8600M GT, 950.0 MHz clock, 255.3 MB memory.
65536 errors were encountered
256x256 * 256x256: 0.008 ms 3998.612 GFlops/s
When compiled with pgfortran -Mcuda=emu sgemm.cuf, the compilation fails with
/opt/pgi/linux86-64/9.0-4/lib/libpgmp.a(setaff.o): In function
_mp_setaff': setaff.c:(.text+0xde): undefined reference tonuma_available’
setaff.c:(.text+0xe7): undefined reference tonuma_set_localalloc' /opt/pgi/linux86-64/9.0-4/lib/libpgmp.a(setaff.o): In function__pgi_nnodes’:
setaff.c:(.text+0xf6): undefined reference tonuma_available' setaff.c:(.text+0xff): undefined reference tonuma_max_node’
/opt/pgi/linux86-64/9.0-4/lib/libpgmp.a(setaff.o): In function_mp_malloc_local': setaff.c:(.text+0x123): undefined reference tonuma_available’
setaff.c:(.text+0x13e): undefined reference to `numa_alloc_local’
I am running Fedora 10 X86_64, using PGI 9.0-4 and the contents of sitenvrc is
set NVOPEN64DIR=/usr/local/cuda/open64/lib;
set CUDADIR=/usr/local/cuda/bin;
set CUDALIB=/usr/local/cuda/lib;
set GCCVERSION=40301;
CUDA 2.2 and NVIDIA driver version NVIDIA-Linux-x86_64-185.18.14
Thank you for your help