How driver and runtime calls may be mixed

First of all, I’m a beginner in jcuda and I have a question. I ran a example program from jcuda.org (the file: JCudaRuntimeDriverMixSample.java).

There’s a thing that I don’t understand, ¿where’s the file invertVectorElements.cubin?

Perhaps I’m not understanding something about jcuda, ¿Can someone explain me?

From what I understood ¿Can I create a file whit a own kernel and use it from Java?
If so ¿Should I place it in a specific folder?

Hello

It is also linked at jcuda.org - Samples - but note that you may have to compile it on your own with the NVCC from this file http://jcuda.org/samples/invertVectorElements.cu

From what I understood ¿Can I create a file whit a own kernel and use it from Java?
If so ¿Should I place it in a specific folder?

From the kernel (which is usually stored in a .CU file) you can compile a .CUBIN file, and then load and execute this file.

bye

An apology for asking the wrong question.
I downloaded only the http://www.jcuda.de/samples/JCudaRuntimeDriverMixSample.java file and the program works.

The question is Why works if I didn’t download the .CUBIN file?

I’m using Netbeans, I don’t know if it has something to do.

Actually, it can not work without the CUBIN file… Without the CUBIN file, it should print an error message. What exactly is the output when you run the program?

Actually it’s very strange. Yesterday (before install NSight) the program worked and now I want to run it and effectively print an error message „File not found“ logically. Thank you for all.

Now, the problem is when I try to compile th file .cu. I get the error:

nvcc fatal: Cannot find compiler ‚cl.exe‘ in PATH

I installed Visual Studio and I found a file named ‚cl.exe‘ and I added the directory to PATH variable, but not works.

So I tried to compile as follows:

nvcc file.cu

The problem was the cl.exe version. Only MSVC 8.0 and MSVC 9.0 are supported.