Skip to content

[Draft] Windows compatibility - #421

Open
Louis-Pujol wants to merge 25 commits into
getkeops:mainfrom
Louis-Pujol:windows-compatibility
Open

[Draft] Windows compatibility#421
Louis-Pujol wants to merge 25 commits into
getkeops:mainfrom
Louis-Pujol:windows-compatibility

typo x86 -> x64

e890b20
Select commit
Loading
Failed to load commit list.
Cirrus CI / Tests (macOS) failed Sep 19, 2025 in 3m 35s

Task Summary

Instruction main failed in 03:27

Details

⚠️ Not enough compute credits to prioritize tasks!
⚠️ Only [ghcr.io/cirruslabs/macos-runner:sonoma, ghcr.io/cirruslabs/macos-runner:sequoia] is allowed. Automatically upgraded to ghcr.io/cirruslabs/macos-runner:sequoia.

✅ 00:02 clone
❌ 03:27 main

keopscore/keopscore/test/test_op.py:118: in perform_test
    c = my_routine(*args)
        ^^^^^^^^^^^^^^^^^
pykeops/pykeops/torch/generic/generic_red.py:693: in __call__
    out = GenredAutograd_fun(params, *args)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
pykeops/pykeops/torch/generic/generic_red.py:383: in GenredAutograd_fun
    return GenredAutograd.apply(*inputs)[0]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.test_venv/lib/python3.12/site-packages/torch/autograd/function.py:576: in apply
    return super().apply(*args, **kwargs)  # type: ignore[misc]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
pykeops/pykeops/torch/generic/generic_red.py:291: in forward
    return GenredAutograd_base._forward(*inputs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
pykeops/pykeops/torch/generic/generic_red.py:91: in _forward
    myconv = keops_binder["nvrtc" if tagCPUGPU else "cpp"](
keopscore/keopscore/utils/Cache.py:92: in __call__
    obj = self.cls(*args)
          ^^^^^^^^^^^^^^^
pykeops/pykeops/common/keops_io/LoadKeOps_cpp.py:19: in __init__
    super().__init__(*args, fast_init=fast_init)
pykeops/pykeops/common/keops_io/LoadKeOps.py:31: in __init__
    self.init_phase2()
pykeops/pykeops/common/keops_io/LoadKeOps_cpp.py:53: in init_phase2
    mylib = importlib.import_module(
/opt/homebrew/Cellar/python@3.12/3.12.11/Frameworks/Python.framework/Versions/3.12/lib/python3.12/importlib/__init__.py:90: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
<frozen importlib._bootstrap>:1387: in _gcd_import
    ???
<frozen importlib._bootstrap>:1360: in _find_and_load
    ???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

name = 'pykeops_cpp_9fdd296f41', import_ = <function _gcd_import at 0x104a880e0>

>   ???
E   ModuleNotFoundError: No module named 'pykeops_cpp_9fdd296f41'

<frozen importlib._bootstrap>:1324: ModuleNotFoundError
----------------------------- Captured stdout call -----------------------------
[KeOps] Generating code for Sum_Reduction reduction (with parameters 0) of formula XLogX(a) with a=Var(0,3,1) ... OK
[pyKeOps] Compiling pykeops cpp 9fdd296f41 module ... OK
----------------------------- Captured stderr call -----------------------------
OMP: Error #179: Function pthread_key_create failed:
OMP: System error #35: Resource temporarily unavailable
=========================== short test summary info ============================
FAILED keopscore/keopscore/test/test_op.py::test_formula_maths[SinXDivX] - RuntimeError: thread_specific_storage constructor: could not initialize the TSS key!
FAILED keopscore/keopscore/test/test_op.py::test_formula_maths[Sqrt] - RuntimeError: thread_specific_storage constructor: could not initialize the TSS key!
FAILED keopscore/keopscore/test/test_op.py::test_formula_maths[Square] - ModuleNotFoundError: No module named 'pykeops_cpp_8ba3530092'
FAILED keopscore/keopscore/test/test_op.py::test_formula_maths[Step] - ModuleNotFoundError: No module named 'pykeops_cpp_f7564c7f62'
FAILED keopscore/keopscore/test/test_op.py::test_formula_maths[Subtract] - ModuleNotFoundError: No module named 'pykeops_cpp_7cd8b4d953'
FAILED keopscore/keopscore/test/test_op.py::test_formula_maths[XLogX] - ModuleNotFoundError: No module named 'pykeops_cpp_9fdd296f41'
=================== 6 failed, 61 passed in 177.09s (0:02:57) ===================
������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������