Skip to content

Unspecified Warning upon first call to import pyKeops #297

@adam-hartshorne

Description

@adam-hartshorne

Using the installation guide provided here, #281, I have installed Keops on a Windows box running python 3.9. However, I also get an unspecified warning when I first import any function e.g.

import pykeops

[KeOps] Warning : There were warnings or errors compiling formula :
CUDA_CUDART_LIBRARY = C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v11.7/lib/x64/cudart.lib
CUDA_LIBRARIES = C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v11.7/lib/x64/cudart_static.lib
CUDA_TOOLKIT_ROOT_DIR = C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v11.7
set nvrtc path = C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v11.7/lib/x64
pybind11_INCLUDE_DIRS = C:/Users/Adam/anaconda3/envs/pytorch/Lib/site-packages/pybind11-2.10.4-py3.9.egg/pybind11/include;C:/Users/Adam/anaconda3/envs/pytorch/include
PYTHON_LIBRARY = C:/Users/Adam/anaconda3/envs/pytorch/libs/python39.lib

OK

And on occasion

>>>test_numpy_bindings()
c:\sdks\keops\pykeops\pykeops\numpy\utils.py:112: RuntimeWarning: overflow encountered in cast
  return np.empty(shape).astype(dtype)
pyKeOps with numpy bindings is working!

Despite this, if I repeat to try the import or run test_numpy_bindings() call again, they work without warning / error and pykeops.test_torch_bindings() always passes ok. Furthermore, running KeOps.py benchmark appears to give solid results.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions