There are NO DLLs in my application dir.
The cuda and cudnn libraries are in the $PATH.
Although I do not want to use dynamic link library,
application succeeded by below.

link official distributed “caffe2_nvrtc.lib”
place “caffe2_nvcrt.dll” next to the application.

So, to succeed with static library, I tried below and it didn’t work.

change CMakeFiles.txt under “caffe2” directory as below and run build.

565c565
<     add_library(caffe2_nvrtc SHARED ${ATen_NVRTC_STUB_SRCS})
---
>     add_library(caffe2_nvrtc ${ATen_NVRTC_STUB_SRCS})


caffe2_nvrtc.lib is created (and caffe2_nvrtc.dll is not).
link it to the app.

But it does work if “caffe2_nvrtc.dll” (the official one) is placed next to the application.
The difference between the loaded DLLs when the application succeeds or fails are :

caffe2_nvrtc.dll
nvrtc64_101_0.dll

So what should I do to succeed with static cuffe2_nvrtc.lib?