Warning when searching for -lcudart

I am very inexperienced with GPU programming, and I inherited a project that another developer was working on. When I attempt to compile the project using the existing make file, I get a warning message:

skipping incompatible /opt/cuda/lib/libcudart.so when searching for -lcudart

Despite this warning, the project compiles and runs, but I am concerned as to what it means. I would like to eliminate it if possible so the project compiles without warnings. Google has not turned up much in troubleshooting this problem.

Can anyone offer any suggestions as to what the libcudart library is used for, or how to eliminate this message.


It means that you have both 64 and 32 bit versions of the library in the search path you are providing the compiler, and the one which doesn’t match the target architecture you are compiling for is preceding the one you need to link with. Nothing more serious than that

Thank you for your reply. I just won’t worry about it then, since I don’t feel like tearing apart the make file.

  • Bill