Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CuPy Error #4

Open
marshal2107 opened this issue Feb 5, 2024 · 3 comments
Open

CuPy Error #4

marshal2107 opened this issue Feb 5, 2024 · 3 comments

Comments

@marshal2107
Copy link

When running your example workflow I am having this problem.

Do you know what could be causing it?

Log:
Error occurred when executing SmoothVideo:

CuPy failed to load nvrtc64_120_0.dll: FileNotFoundError: Could not find module 'nvrtc64_120_0.dll' (or one of its dependencies). Try using the full path with constructor syntax.

File "P:\STABLEDIFFUSION\ComfyUI_windows_portable\ComfyUI\execution.py", line 152, in recursive_execute
output_data, output_ui = get_output_data(obj, input_data_all)
File "P:\STABLEDIFFUSION\ComfyUI_windows_portable\ComfyUI\execution.py", line 82, in get_output_data
return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True)
File "P:\STABLEDIFFUSION\ComfyUI_windows_portable\ComfyUI\execution.py", line 75, in map_node_over_list
results.append(getattr(obj, func)(**slice_dict(input_data_all, i)))
File "P:\STABLEDIFFUSION\ComfyUI_windows_portable\ComfyUI\custom_nodes\AInseven\smoothVideo.py", line 110, in execute
frames = smooth_video(
File "P:\STABLEDIFFUSION\ComfyUI_windows_portable\ComfyUI\custom_nodes\AInseven\FastBlend\api.py", line 75, in smooth_video
frames=FastModeRunner().run(frames_guide, frames_style, batch_size=batch_size, window_size=window_size,
File "P:\STABLEDIFFUSION\ComfyUI_windows_portable\ComfyUI\custom_nodes\AInseven\FastBlend\runners\fast.py", line 125, in run
table_l = table_manager.build_remapping_table(frames_guide, frames_style, patch_match_engine, batch_size, desc="Fast Mode Step 1/4")
File "P:\STABLEDIFFUSION\ComfyUI_windows_portable\ComfyUI\custom_nodes\AInseven\FastBlend\runners\fast.py", line 44, in build_remapping_table
_, target_style = patch_match_engine.estimate_nnf(source_guide, target_guide, source_style)
File "P:\STABLEDIFFUSION\ComfyUI_windows_portable\ComfyUI\custom_nodes\AInseven\FastBlend\patch_match.py", line 291, in estimate_nnf
nnf = self.initialize_nnf(source_guide.shape[0]) if level==0 else self.update_nnf(nnf, level)
File "P:\STABLEDIFFUSION\ComfyUI_windows_portable\ComfyUI\custom_nodes\AInseven\FastBlend\patch_match.py", line 254, in initialize_nnf
cp.repeat(cp.arange(height), width).reshape(height, width),
File "P:\STABLEDIFFUSION\ComfyUI_windows_portable\python_embeded\lib\site-packages\cupy_creation\ranges.py", line 60, in arange
_arange_ufunc(typ(start), typ(step), ret, dtype=dtype)
File "cupy_core_kernel.pyx", line 1375, in cupy._core._kernel.ufunc.call
File "cupy_core_kernel.pyx", line 1402, in cupy._core._kernel.ufunc._get_ufunc_kernel
File "cupy_core_kernel.pyx", line 1082, in cupy._core._kernel._get_ufunc_kernel
File "cupy_core_kernel.pyx", line 94, in cupy._core._kernel._get_simple_elementwise_kernel
File "cupy_core_kernel.pyx", line 82, in cupy._core._kernel._get_simple_elementwise_kernel_from_code
File "cupy_core\core.pyx", line 2254, in cupy._core.core.compile_with_cache
File "P:\STABLEDIFFUSION\ComfyUI_windows_portable\python_embeded\lib\site-packages\cupy\cuda\compiler.py", line 484, in _compile_module_with_cache
return _compile_with_cache_cuda(
File "P:\STABLEDIFFUSION\ComfyUI_windows_portable\python_embeded\lib\site-packages\cupy\cuda\compiler.py", line 499, in _compile_with_cache_cuda
arch = _get_arch()
File "cupy_util.pyx", line 64, in cupy._util.memoize.decorator.ret
File "P:\STABLEDIFFUSION\ComfyUI_windows_portable\python_embeded\lib\site-packages\cupy\cuda\compiler.py", line 148, in _get_arch
nvrtc_max_compute_capability = _get_max_compute_capability()
File "cupy_util.pyx", line 64, in cupy._util.memoize.decorator.ret
File "P:\STABLEDIFFUSION\ComfyUI_windows_portable\python_embeded\lib\site-packages\cupy\cuda\compiler.py", line 126, in _get_max_compute_capability
major, minor = _get_nvrtc_version()
File "P:\STABLEDIFFUSION\ComfyUI_windows_portable\python_embeded\lib\site-packages\cupy\cuda\compiler.py", line 115, in _get_nvrtc_version
_nvrtc_version = nvrtc.getVersion()
File "cupy_backends\cuda\libs\nvrtc.pyx", line 56, in cupy_backends.cuda.libs.nvrtc.getVersion
File "cupy_backends\cuda\libs\nvrtc.pyx", line 57, in cupy_backends.cuda.libs.nvrtc.getVersion
File "cupy_backends\cuda\libs_cnvrtc.pxi", line 72, in cupy_backends.cuda.libs.nvrtc.initialize
File "cupy_backends\cuda\libs_cnvrtc.pxi", line 76, in cupy_backends.cuda.libs.nvrtc._initialize
File "cupy_backends\cuda\libs_cnvrtc.pxi", line 143, in cupy_backends.cuda.libs.nvrtc._get_softlink
File "cupy_backends\cuda_softlink.pyx", line 32, in cupy_backends.cuda._softlink.SoftLink.__ini

@AInseven
Copy link
Owner

AInseven commented Feb 6, 2024

You need install CUDA Toolkit.
https://developer.nvidia.com/cuda-downloads

@inferno46n2
Copy link

Did you ever figure this out?

@aswordok
Copy link

"C:\Users\user\AppData\Local\Programs\Python\Python311\Lib\site-packages\nvidia\cuda_nvrtc\bin\nvrtc64_120_0.dll"

copy it to :

C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\bin

Confirm your Path and modify it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants