Remove nvToolsExt.h when NVTX not found.
@@ -83,6 +83,7 @@ if sys.platform == 'win32':
mod_cuda['libraries'].remove('nvToolsExt')
if utils.search_on_path(['nvToolsExt64_1.dll']) is None:
mod_cuda['file'].remove('cupy.cuda.nvtx')
+ mod_cuda['include'].remove('nvToolsExt.h')
utils.print_warning(
'Cannot find nvToolsExt. nvtx was disabled.')
else:
