cuModuleLoadData returned error 300


I installed the current CUDA toolkit and verify the installation by the SDK samples (eigenvalues, MonteCarlo).

pgcc -o c1.exe c1.c -ta=nvidia -Minfo=accel -fast

compilied without any error, but when I run the programm I obtain the error

call to cuModuleLoadData returned error 300: Invalid source

What’s the problem?

Thanks a lot!

With kind regards

My System
Ubuntu 9.10
Intel Core 2 Duo E6750
GeForce 9800 GTX
NVIDIA Driver Version 180.44
NV-Control Version 1.17

I established the file sitevrc with the entry GCCVERSION=40301[/code]


Can you please send code to so we can investigate?

Thank you,

Hi Mathias,

Try compilng with “-ta=nvidia,cc11”. This error typically occurs when there is a mismatch in the compute capabitity version. By default, the compiler targets CC 1.3. “cc11” tells the compiler to target CC 1.1.

Also, “GCCVERSION=40301” should only be used if you have GCC 4.3 installed.

  • Mat