On Thu, Jan 14, 2016 at 4:35 PM, Esteban Hernández <eshernan@xxxxxxxxx> wrote: > Dear alexander, > > I review the code of pi implementation and the pi value is copyout > > > #pragma acc data copyout (pi) > #pragma acc parallel vector_length (vl) reduction (+:pi) > for (i=0; i<N; i++) { > double t= (double)((i+0.5)/N); > pi +=4.0/(1.0+t*t); > } > printf("pi=%11.10f\n",pi/N); > > But when i run the program with strace the result is wattling forever, > > strace -e open ./gpu_a1.x > open("/usr/local/cuda/lib64/tls/x86_64/libgomp.so.1", O_RDONLY|O_CLOEXEC) = > -1 ENOENT (No such file or directory) > open("/usr/local/cuda/lib64/tls/libgomp.so.1", O_RDONLY|O_CLOEXEC) = -1 > ENOENT (No such file or directory) > open("/usr/local/cuda/lib64/x86_64/libgomp.so.1", O_RDONLY|O_CLOEXEC) = -1 > ENOENT (No such file or directory) > open("/usr/local/cuda/lib64/libgomp.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT > (No such file or directory) > open("/home/eshernan/gcc/6.0/install/lib64/tls/x86_64/libgomp.so.1", > O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) > open("/home/eshernan/gcc/6.0/install/lib64/tls/libgomp.so.1", > O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) > open("/home/eshernan/gcc/6.0/install/lib64/x86_64/libgomp.so.1", > O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) > open("/home/eshernan/gcc/6.0/install/lib64/libgomp.so.1", > O_RDONLY|O_CLOEXEC) = 3 > open("/usr/local/cuda/lib64/libpthread.so.0", O_RDONLY|O_CLOEXEC) = -1 > ENOENT (No such file or directory) > open("/home/eshernan/gcc/6.0/install/lib64/libpthread.so.0", > O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) > open("tls/x86_64/libpthread.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such > file or directory) > open("tls/libpthread.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or > directory) > open("x86_64/libpthread.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file > or directory) > open("libpthread.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or > directory) > open("/usr/local/cuda-6.5/lib64/tls/x86_64/libpthread.so.0", > O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) > open("/usr/local/cuda-6.5/lib64/tls/libpthread.so.0", O_RDONLY|O_CLOEXEC) = > -1 ENOENT (No such file or directory) > open("/usr/local/cuda-6.5/lib64/x86_64/libpthread.so.0", O_RDONLY|O_CLOEXEC) > = -1 ENOENT (No such file or directory) > open("/usr/local/cuda-6.5/lib64/libpthread.so.0", O_RDONLY|O_CLOEXEC) = -1 > ENOENT (No such file or directory) > open("/usr/local/cuda-6.5/lib/tls/x86_64/libpthread.so.0", > O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) > open("/usr/local/cuda-6.5/lib/tls/libpthread.so.0", O_RDONLY|O_CLOEXEC) = -1 > ENOENT (No such file or directory) > open("/usr/local/cuda-6.5/lib/x86_64/libpthread.so.0", O_RDONLY|O_CLOEXEC) = > -1 ENOENT (No such file or directory) > open("/usr/local/cuda-6.5/lib/libpthread.so.0", O_RDONLY|O_CLOEXEC) = -1 > ENOENT (No such file or directory) > open("/home/eshernan/bin/usr/local/lib64/tls/x86_64/libpthread.so.0", > O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) > open("/home/eshernan/bin/usr/local/lib64/tls/libpthread.so.0", > O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) > open("/home/eshernan/bin/usr/local/lib64/x86_64/libpthread.so.0", > O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) > open("/home/eshernan/bin/usr/local/lib64/libpthread.so.0", > O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) > open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3 > open("/lib64/libpthread.so.0", O_RDONLY|O_CLOEXEC) = 3 > open("/usr/local/cuda/lib64/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No > such file or directory) > open("/home/eshernan/gcc/6.0/install/lib64/libc.so.6", O_RDONLY|O_CLOEXEC) = > -1 ENOENT (No such file or directory) > open("tls/x86_64/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file > or directory) > open("tls/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or > directory) > open("x86_64/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or > directory) > open("libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or > directory) > open("/usr/local/cuda-6.5/lib64/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT > (No such file or directory) > open("/usr/local/cuda-6.5/lib/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT > (No such file or directory) > open("/lib64/libc.so.6", O_RDONLY|O_CLOEXEC) = 3 > open("/usr/local/cuda/lib64/libgcc_s.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT > (No such file or directory) > open("/home/eshernan/gcc/6.0/install/lib64/libgcc_s.so.1", > O_RDONLY|O_CLOEXEC) = 3 > open("/usr/local/cuda/lib64/libdl.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No > such file or directory) > open("/home/eshernan/gcc/6.0/install/lib64/libdl.so.2", O_RDONLY|O_CLOEXEC) > = -1 ENOENT (No such file or directory) > open("tls/x86_64/libdl.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file > or directory) > open("tls/libdl.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or > directory) > open("x86_64/libdl.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or > directory) > open("libdl.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or > directory) > open("/usr/local/cuda-6.5/lib64/libdl.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT > (No such file or directory) > open("/usr/local/cuda-6.5/lib/libdl.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT > (No such file or directory) > open("/lib64/libdl.so.2", O_RDONLY|O_CLOEXEC) = 3 > The memory size is 190 > open("/usr/local/cuda/lib64/libgomp-plugin-nvptx.so.1", O_RDONLY|O_CLOEXEC) > = -1 ENOENT (No such file or directory) > open("/home/eshernan/gcc/6.0/install/lib64/libgomp-plugin-nvptx.so.1", > O_RDONLY|O_CLOEXEC) = 3 > open("/usr/local/cuda/lib64/libcuda.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT > (No such file or directory) > open("/home/eshernan/gcc/6.0/install/lib64/libcuda.so.1", > O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) > open("tls/x86_64/libcuda.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such > file or directory) > open("tls/libcuda.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or > directory) > open("x86_64/libcuda.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or > directory) > open("libcuda.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or > directory) > open("/usr/local/cuda-6.5/lib64/libcuda.so.1", O_RDONLY|O_CLOEXEC) = -1 > ENOENT (No such file or directory) > open("/usr/local/cuda-6.5/lib/libcuda.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT > (No such file or directory) > open("/lib/../lib64/tls/x86_64/libcuda.so.1", O_RDONLY|O_CLOEXEC) = -1 > ENOENT (No such file or directory) > open("/lib/../lib64/tls/libcuda.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No > such file or directory) > open("/lib/../lib64/x86_64/libcuda.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT > (No such file or directory) > open("/lib/../lib64/libcuda.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such > file or directory) > open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3 > open("/usr/lib64/libcuda.so.1", O_RDONLY|O_CLOEXEC) = 3 > open("/usr/local/cuda/lib64/librt.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No > such file or directory) > open("/home/eshernan/gcc/6.0/install/lib64/librt.so.1", O_RDONLY|O_CLOEXEC) > = -1 ENOENT (No such file or directory) > open("tls/x86_64/librt.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file > or directory) > open("tls/librt.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or > directory) > open("x86_64/librt.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or > directory) > open("librt.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or > directory) > open("/usr/local/cuda-6.5/lib64/librt.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT > (No such file or directory) > open("/usr/local/cuda-6.5/lib/librt.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT > (No such file or directory) > open("/lib64/librt.so.1", O_RDONLY|O_CLOEXEC) = 3 > open("/usr/local/cuda/lib64/libm.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No > such file or directory) > open("/home/eshernan/gcc/6.0/install/lib64/libm.so.6", O_RDONLY|O_CLOEXEC) = > -1 ENOENT (No such file or directory) > open("tls/x86_64/libm.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file > or directory) > open("tls/libm.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or > directory) > open("x86_64/libm.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or > directory) > open("libm.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or > directory) > open("/usr/local/cuda-6.5/lib64/libm.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT > (No such file or directory) > open("/usr/local/cuda-6.5/lib/libm.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT > (No such file or directory) > open("/lib64/libm.so.6", O_RDONLY|O_CLOEXEC) = 3 > open("/sys/devices/system/cpu/online", O_RDONLY|O_CLOEXEC) = 3 > open("/dev/shm/cuda_injection_path_shm", O_RDWR|O_NOFOLLOW|O_CLOEXEC) = -1 > ENOENT (No such file or directory) > open("/root/.nv/nvidia-application-profile-globals-rc", O_RDONLY) = -1 > ENOENT (No such file or directory) > open("/root/.nv/nvidia-application-profiles-rc", O_RDONLY) = -1 ENOENT (No > such file or directory) > open("/root/.nv/nvidia-application-profiles-rc.d", O_RDONLY) = -1 ENOENT (No > such file or directory) > open("/etc/nvidia/nvidia-application-profiles-rc", O_RDONLY) = 3 > open("/etc/nvidia/nvidia-application-profiles-rc.d/", O_RDONLY) = -1 ENOENT > (No such file or directory) > open("/usr/share/nvidia/nvidia-application-profiles-355.11-rc", O_RDONLY) = > -1 ENOENT (No such file or directory) > open("/usr/share/nvidia/nvidia-application-profiles-rc", O_RDONLY) = -1 > ENOENT (No such file or directory) > open("/tmp/nvidia-mps/control", O_WRONLY|O_NONBLOCK) = -1 ENOENT (No such > file or directory) > open("/proc/modules", O_RDONLY) = 3 > open("/proc/driver/nvidia/params", O_RDONLY) = 3 > open("/dev/nvidiactl", O_RDWR) = 3 > open("/proc/driver/nvidia/params", O_RDONLY) = 4 > open("/dev/nvidia0", O_RDWR) = 4 > open("/proc/driver/nvidia/params", O_RDONLY) = 5 > open("/dev/nvidia0", O_RDWR) = 5 > open("/proc/driver/nvidia/params", O_RDONLY) = 6 > open("/dev/nvidia0", O_RDWR) = 6 > open("/proc/modules", O_RDONLY) = 7 > open("/proc/devices", O_RDONLY) = 7 > open("/dev/nvidia-uvm", O_RDWR) = 7 > open("/proc/self/maps", O_RDONLY) = 8 > open("/proc/self/maps", O_RDONLY) = 8 > open("/proc/self/maps", O_RDONLY) = 8 > open("/proc/driver/nvidia/params", O_RDONLY) = 10 > open("/dev/nvidia0", O_RDWR) = 10 > open("/proc/driver/nvidia/params", O_RDONLY) = 11 > open("/dev/nvidia0", O_RDWR) = 11 > open("/proc/driver/nvidia/params", O_RDONLY) = 14 > open("/dev/nvidia0", O_RDWR) = 14 > open("/root/.nv/ComputeCache/index", O_RDWR) = 17 > open("/root/.nv/ComputeCache/2/5/2db0fe6e9e7845", O_RDONLY) = 18 > ^C--- SIGINT {si_signo=SIGINT, si_code=SI_KERNEL, si_value={int=809120564, > ptr=0x30322034303a3334}} --- > Process 26773 detached > linuxdev-server test_pi # > linuxdev-server test_pi # > linuxdev-server test_pi # > linuxdev-server test_pi # > linuxdev-server test_pi # > linuxdev-server test_pi # vim pi.c > linuxdev-server test_pi # strace -e open ./gpu_a1.x > open("/usr/local/cuda/lib64/tls/x86_64/libgomp.so.1", O_RDONLY|O_CLOEXEC) = > -1 ENOENT (No such file or directory) > open("/usr/local/cuda/lib64/tls/libgomp.so.1", O_RDONLY|O_CLOEXEC) = -1 > ENOENT (No such file or directory) > open("/usr/local/cuda/lib64/x86_64/libgomp.so.1", O_RDONLY|O_CLOEXEC) = -1 > ENOENT (No such file or directory) > open("/usr/local/cuda/lib64/libgomp.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT > (No such file or directory) > open("/home/eshernan/gcc/6.0/install/lib64/tls/x86_64/libgomp.so.1", > O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) > open("/home/eshernan/gcc/6.0/install/lib64/tls/libgomp.so.1", > O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) > open("/home/eshernan/gcc/6.0/install/lib64/x86_64/libgomp.so.1", > O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) > open("/home/eshernan/gcc/6.0/install/lib64/libgomp.so.1", > O_RDONLY|O_CLOEXEC) = 3 > open("/usr/local/cuda/lib64/libpthread.so.0", O_RDONLY|O_CLOEXEC) = -1 > ENOENT (No such file or directory) > open("/home/eshernan/gcc/6.0/install/lib64/libpthread.so.0", > O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) > open("tls/x86_64/libpthread.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such > file or directory) > open("tls/libpthread.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or > directory) > open("x86_64/libpthread.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file > or directory) > open("libpthread.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or > directory) > open("/usr/local/cuda-6.5/lib64/tls/x86_64/libpthread.so.0", > O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) > open("/usr/local/cuda-6.5/lib64/tls/libpthread.so.0", O_RDONLY|O_CLOEXEC) = > -1 ENOENT (No such file or directory) > open("/usr/local/cuda-6.5/lib64/x86_64/libpthread.so.0", O_RDONLY|O_CLOEXEC) > = -1 ENOENT (No such file or directory) > open("/usr/local/cuda-6.5/lib64/libpthread.so.0", O_RDONLY|O_CLOEXEC) = -1 > ENOENT (No such file or directory) > open("/usr/local/cuda-6.5/lib/tls/x86_64/libpthread.so.0", > O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) > open("/usr/local/cuda-6.5/lib/tls/libpthread.so.0", O_RDONLY|O_CLOEXEC) = -1 > ENOENT (No such file or directory) > open("/usr/local/cuda-6.5/lib/x86_64/libpthread.so.0", O_RDONLY|O_CLOEXEC) = > -1 ENOENT (No such file or directory) > open("/usr/local/cuda-6.5/lib/libpthread.so.0", O_RDONLY|O_CLOEXEC) = -1 > ENOENT (No such file or directory) > open("/home/eshernan/bin/usr/local/lib64/tls/x86_64/libpthread.so.0", > O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) > open("/home/eshernan/bin/usr/local/lib64/tls/libpthread.so.0", > O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) > open("/home/eshernan/bin/usr/local/lib64/x86_64/libpthread.so.0", > O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) > open("/home/eshernan/bin/usr/local/lib64/libpthread.so.0", > O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) > open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3 > open("/lib64/libpthread.so.0", O_RDONLY|O_CLOEXEC) = 3 > open("/usr/local/cuda/lib64/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No > such file or directory) > open("/home/eshernan/gcc/6.0/install/lib64/libc.so.6", O_RDONLY|O_CLOEXEC) = > -1 ENOENT (No such file or directory) > open("tls/x86_64/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file > or directory) > open("tls/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or > directory) > open("x86_64/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or > directory) > open("libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or > directory) > open("/usr/local/cuda-6.5/lib64/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT > (No such file or directory) > open("/usr/local/cuda-6.5/lib/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT > (No such file or directory) > open("/lib64/libc.so.6", O_RDONLY|O_CLOEXEC) = 3 > open("/usr/local/cuda/lib64/libgcc_s.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT > (No such file or directory) > open("/home/eshernan/gcc/6.0/install/lib64/libgcc_s.so.1", > O_RDONLY|O_CLOEXEC) = 3 > open("/usr/local/cuda/lib64/libdl.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No > such file or directory) > open("/home/eshernan/gcc/6.0/install/lib64/libdl.so.2", O_RDONLY|O_CLOEXEC) > = -1 ENOENT (No such file or directory) > open("tls/x86_64/libdl.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file > or directory) > open("tls/libdl.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or > directory) > open("x86_64/libdl.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or > directory) > open("libdl.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or > directory) > open("/usr/local/cuda-6.5/lib64/libdl.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT > (No such file or directory) > open("/usr/local/cuda-6.5/lib/libdl.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT > (No such file or directory) > open("/lib64/libdl.so.2", O_RDONLY|O_CLOEXEC) = 3 > The memory size is 190 > open("/usr/local/cuda/lib64/libgomp-plugin-nvptx.so.1", O_RDONLY|O_CLOEXEC) > = -1 ENOENT (No such file or directory) > open("/home/eshernan/gcc/6.0/install/lib64/libgomp-plugin-nvptx.so.1", > O_RDONLY|O_CLOEXEC) = 3 > open("/usr/local/cuda/lib64/libcuda.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT > (No such file or directory) > open("/home/eshernan/gcc/6.0/install/lib64/libcuda.so.1", > O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) > open("tls/x86_64/libcuda.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such > file or directory) > open("tls/libcuda.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or > directory) > open("x86_64/libcuda.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or > directory) > open("libcuda.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or > directory) > open("/usr/local/cuda-6.5/lib64/libcuda.so.1", O_RDONLY|O_CLOEXEC) = -1 > ENOENT (No such file or directory) > open("/usr/local/cuda-6.5/lib/libcuda.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT > (No such file or directory) > open("/lib/../lib64/tls/x86_64/libcuda.so.1", O_RDONLY|O_CLOEXEC) = -1 > ENOENT (No such file or directory) > open("/lib/../lib64/tls/libcuda.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No > such file or directory) > open("/lib/../lib64/x86_64/libcuda.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT > (No such file or directory) > open("/lib/../lib64/libcuda.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such > file or directory) > open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3 > open("/usr/lib64/libcuda.so.1", O_RDONLY|O_CLOEXEC) = 3 > open("/usr/local/cuda/lib64/librt.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No > such file or directory) > open("/home/eshernan/gcc/6.0/install/lib64/librt.so.1", O_RDONLY|O_CLOEXEC) > = -1 ENOENT (No such file or directory) > open("tls/x86_64/librt.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file > or directory) > open("tls/librt.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or > directory) > open("x86_64/librt.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or > directory) > open("librt.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or > directory) > open("/usr/local/cuda-6.5/lib64/librt.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT > (No such file or directory) > open("/usr/local/cuda-6.5/lib/librt.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT > (No such file or directory) > open("/lib64/librt.so.1", O_RDONLY|O_CLOEXEC) = 3 > open("/usr/local/cuda/lib64/libm.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No > such file or directory) > open("/home/eshernan/gcc/6.0/install/lib64/libm.so.6", O_RDONLY|O_CLOEXEC) = > -1 ENOENT (No such file or directory) > open("tls/x86_64/libm.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file > or directory) > open("tls/libm.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or > directory) > open("x86_64/libm.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or > directory) > open("libm.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or > directory) > open("/usr/local/cuda-6.5/lib64/libm.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT > (No such file or directory) > open("/usr/local/cuda-6.5/lib/libm.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT > (No such file or directory) > open("/lib64/libm.so.6", O_RDONLY|O_CLOEXEC) = 3 > open("/sys/devices/system/cpu/online", O_RDONLY|O_CLOEXEC) = 3 > open("/dev/shm/cuda_injection_path_shm", O_RDWR|O_NOFOLLOW|O_CLOEXEC) = -1 > ENOENT (No such file or directory) > open("/root/.nv/nvidia-application-profile-globals-rc", O_RDONLY) = -1 > ENOENT (No such file or directory) > open("/root/.nv/nvidia-application-profiles-rc", O_RDONLY) = -1 ENOENT (No > such file or directory) > open("/root/.nv/nvidia-application-profiles-rc.d", O_RDONLY) = -1 ENOENT (No > such file or directory) > open("/etc/nvidia/nvidia-application-profiles-rc", O_RDONLY) = 3 > open("/etc/nvidia/nvidia-application-profiles-rc.d/", O_RDONLY) = -1 ENOENT > (No such file or directory) > open("/usr/share/nvidia/nvidia-application-profiles-355.11-rc", O_RDONLY) = > -1 ENOENT (No such file or directory) > open("/usr/share/nvidia/nvidia-application-profiles-rc", O_RDONLY) = -1 > ENOENT (No such file or directory) > open("/tmp/nvidia-mps/control", O_WRONLY|O_NONBLOCK) = -1 ENOENT (No such > file or directory) > open("/proc/modules", O_RDONLY) = 3 > open("/proc/driver/nvidia/params", O_RDONLY) = 3 > open("/dev/nvidiactl", O_RDWR) = 3 > open("/proc/driver/nvidia/params", O_RDONLY) = 4 > open("/dev/nvidia0", O_RDWR) = 4 > open("/proc/driver/nvidia/params", O_RDONLY) = 5 > open("/dev/nvidia0", O_RDWR) = 5 > open("/proc/driver/nvidia/params", O_RDONLY) = 6 > open("/dev/nvidia0", O_RDWR) = 6 > open("/proc/modules", O_RDONLY) = 7 > open("/proc/devices", O_RDONLY) = 7 > open("/dev/nvidia-uvm", O_RDWR) = 7 > open("/proc/self/maps", O_RDONLY) = 8 > open("/proc/self/maps", O_RDONLY) = 8 > open("/proc/self/maps", O_RDONLY) = 8 > open("/proc/driver/nvidia/params", O_RDONLY) = 10 > open("/dev/nvidia0", O_RDWR) = 10 > open("/proc/driver/nvidia/params", O_RDONLY) = 11 > open("/dev/nvidia0", O_RDWR) = 11 > open("/proc/driver/nvidia/params", O_RDONLY) = 14 > open("/dev/nvidia0", O_RDWR) = 14 > open("/root/.nv/ComputeCache/index", O_RDWR) = 17 > open("/root/.nv/ComputeCache/2/5/2db0fe6e9e7845", O_RDONLY) = 18 > > My gcc version is: gcc version 6.0.0 20160103 (experimental) (GCC) > > When i run the same example with GPI the program running fine, > > > > > > On Mon, Jan 4, 2016 at 7:52 PM, Alexander Monakov <amonakov@xxxxxxxxx> > wrote: >> >> (adding gcc-help back to Cc:) >> >> On Mon, 4 Jan 2016, Esteban Hernández wrote: >> > Thanks Alexander for your answer, >> > >> > Attach the phi.c >> >> You have to ensure that 'pi' is copied back from the device by using >> 'copy' or >> 'copyout' clause on the 'parallel' directive, because scalar vars are >> firstprivate by default. >> >> Alexander > > > > > -- > Sincerely > > > Esteban Hernandez B. > HPC specialist > -- Sincerely Esteban Hernandez B. HPC specialist