HI Marco13 ?
You was right, the error is somewhere deeply inside the NVCC compiler, i tried to compile .cu mannually in the command line, but i am still
having the same error message :
temp_JCuda_1478454343652004620.cu
Internal error: assertion failed at: “D:/Bld/rel/gpgpu/toolkit/r3.2/compiler/edg/EDG_4.1/src/host_envir.c”, line 4452
1 catastrophic error detected in the compilation of “C:/Users/LINUXC~1/AppData/Local/Temp/tmpxft_00000c78_00000000-6_temp_JCuda_1478454343652004620.cpp4.ii”.
Compilation aborted.
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application’s support team for more information.
2011?3?28? ??07:08:52 KernelLauncher prepareCubinFile
???: outputMessage:
Exception in thread “main” jcuda.CudaException: Could not create .cubin file: temp_JCuda_1478454343652004620.cu
Internal error: assertion failed at: “D:/Bld/rel/gpgpu/toolkit/r3.2/compiler/edg/EDG_4.1/src/host_envir.c”, line 4452
1 catastrophic error detected in the compilation of “C:/Users/LINUXC~1/AppData/Local/Temp/tmpxft_00000c78_00000000-6_temp_JCuda_1478454343652004620.cpp4.ii”.
Compilation aborted.
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application’s support team for more information.
at KernelLauncher.prepareCubinFile(KernelLauncher.jav a:1144)
at KernelLauncher.create(KernelLauncher.java:384)
at KernelLauncher.create(KernelLauncher.java:320)
at KernelLauncher.compile(KernelLauncher.java:269)
at KernelLauncherSample.main(KernelLauncherSample.jav a:44)
I think something is wrong with my windows 7 environment, so I changed the working environment. I am working now with the linux environment,
more particularly Mandriva Spring 2010.1. I downloaded and installed all the required software from the NVIDIA website :
- CUDA Toolkit for Fedora 13 : cudatoolkit_3.2.16_linux_32_fedora13.run (compatible with Mandriva 2010.1)
- The driver : devdriver_3.2_linux_3.2_260.19.26.run
- The SDK
Also i made all the necessary configuration
This time when I run the KernelLauncherSample.java class, the file .cu is compiled and the .Cubin file is even created, but i do have
the following error message :
Preparing the KernelLauncher…
Exception in thread “Main Thread” jcuda.CudaException: CUDA_ERROR_INVALID_SOURCE
at jcuda.driver.JCudaDriver.checkResult(JCudaDriver.j ava:153)
at jcuda.driver.JCudaDriver.cuModuleLoad(JCudaDriver. java:754)
at KernelLauncher.init(KernelLauncher.java:377)
at KernelLauncher.create(KernelLauncher.java:294)
at KernelLauncher.create(KernelLauncher.java:237)
at KernelLauncher.compile(KernelLauncher.java:201)
at KernelLauncherSample.main(KernelLauncherSample.jav a:36)
Thanks
linuxciscoarnaud