I’m trying to use (include) the nvgraph library in visual studio 2015. Prior to that, I have been successfully using the CUDA library along with the Thrust library (although it was setup using the default visual studio project creator for cuda).
Looking at the documentation provided here: http://docs.nvidia.com/cuda/nvgraph/index.html#introduction, it says the following:
To use nvGRAPH you should be sure the nvGRAPH library is in the environment (PATH on Windows, LD_LIBRARY_PATH on Linux), "#include nvgraph.h" to your source files referencing the nvGRAPH API, and link your code using -lnvgraph on the command line, or add libnvgraph to your library dependencies. We have tested nvGRAPH using GCC 4.8 and higher on Linux, Visual Studio 2012 and Visual Studio 2014 on Windows.
I have done:
Furthermore, I have tried to add nvgraph.lib inside Project properties -> Linker -> Input -> Additional dependencies (here I see cudart.lib as well). I have also tried to add the include folder of CUDA in Project properties -> VC++ Directories- > Include directories.
I did however not include nvgraph in my Windows PATH (to be honest, I’m not sure what to include there either, the nvgraph.lib file?). Furthermore, I tried adding -lnvgraph in Project properties -> Linker -> Command line.
When I run my project I see the error: “Cannot open file nvgraph.lib”.
I would appreciate it if someone could point me how to include this library in visual studio.