NVIDIA / jitify

A single-header C++ library for simplifying the use of CUDA Runtime Compilation (NVRTC).
BSD 3-Clause "New" or "Revised" License
518 stars 64 forks source link

[BUG] GetNumSupportedArchs GetSupportedArchs compile error #110

Closed Xseventh closed 1 year ago

Xseventh commented 1 year ago

template arguments nvrtcProgram is not correct, should remove it. https://github.com/NVIDIA/jitify/blob/0efec9374e640a80968941d7037ee839e8947b2c/jitify2.hpp#L2392 https://github.com/NVIDIA/jitify/blob/0efec9374e640a80968941d7037ee839e8947b2c/jitify2.hpp#L2396

Xseventh commented 1 year ago

more compile info: compile with cuda-toolkit 11.0

define JITIFY_LINK_NVRTC_STATIC 1

define JITIFY_LINK_CUDA_STATIC 1

get compile error: jitify2.hpp:2560:62: error: cannot convert 'int' to '_nvrtcProgram' in argument passing nvrtc().GetNumSupportedArchs()(&num_supported_archs);

benbarsdell commented 1 year ago

Fixed by https://github.com/NVIDIA/jitify/pull/111. Closing.