I am working on an image segmentation program which uses JCuda. The project is a Maven project, the dependencies for JCuda however are stored in dll files and are not managed with maven. Since I got a runtime error in my Cuda kernel (*.ptx), which is invoked by Jcuda, I want to start to debug, which is relatively difficult using a Java wrapper for Cuda. Thus, I want to use “memcheck”, which requires to have a *.bat file which invokes my Java program. This is the point where I get lost. I do not manage to create a runnable jar file, which I can run with the java command in my *.bat file. My Question is, is there another way I could debug my Cuda code, but without creating a runnable jar file? –If not, how can I create a runnable jar file from maven?
I am aware that other people had that question too, but no answer worked for me, which makes me suspect that the dll files have to do with it. I tried to package the project with maven (maven built… -> goal: package). When I navigate to the target directory where my jar file was created via my command prompt the program does not run:
The reply means that no main manifest attribute can be found. Here is the snapshot of my pom file which is supposed to define the main class:
Thank you for your help. This is my first post here on stack overflow, so please point out inconsistencies in my question.