Skip to content

How to slove the issue? #1

@huang1024rui

Description

@huang1024rui

When running the ./cuda/test.ipynd, the PyCharm cannot make the GPInterp from the
gp_interp_cuda = load('gp_interp_cuda', ['gp_interp_cuda.cpp', 'gp_interp_cuda_kernel.cu'], extra_cflags=['-O2'],verbose=True).
How can I sloved it?

Traceback (most recent call last):
  File "D:/PyCharm/PyCharm_Project/non_uniform/cuda/non-uniform.py", line 3, in <module>
    gp_interp_cuda = load('gp_interp_cuda', ['gp_interp_cuda.cpp', 'gp_interp_cuda_kernel.cu'], extra_cflags=['-O2'],verbose=True)
  File "J:\Anaconda\envs\tf-gpu\lib\site-packages\torch\utils\cpp_extension.py", line 1085, in load
    return _jit_compile(
  File "J:\Anaconda\envs\tf-gpu\lib\site-packages\torch\utils\cpp_extension.py", line 1323, in _jit_compile
    return _import_module_from_library(name, build_directory, is_python_module)
  File "J:\Anaconda\envs\tf-gpu\lib\site-packages\torch\utils\cpp_extension.py", line 1706, in _import_module_from_library
    module = importlib.util.module_from_spec(spec)
  File "<frozen importlib._bootstrap>", line 556, in module_from_spec
  File "<frozen importlib._bootstrap_external>", line 1166, in create_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
ImportError: DLL load failed while importing gp_interp_cuda: The specified module could not be found.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions