python3Packages.flashinfer: 0.6.1 -> 0.6.4#495151
python3Packages.flashinfer: 0.6.1 -> 0.6.4#495151GaetanLepage merged 13 commits intoNixOS:masterfrom
Conversation
03f109f to
48d2fb6
Compare
48d2fb6 to
cce7fc7
Compare
|
cce7fc7 to
6244919
Compare
|
Probably closes #495830 |
Indeed. |
|
I'm stuck on |
|
Similar to pyopencl package: diff --git a/pkgs/development/python-modules/pymatting/default.nix b/pkgs/development/python-modules/pymatting/default.nix
index 08467bb938a3..2dfd58dcdb3e 100644
--- a/pkgs/development/python-modules/pymatting/default.nix
+++ b/pkgs/development/python-modules/pymatting/default.nix
@@ -16,7 +16,9 @@
pyopencl,
# tests
+ pocl,
pytestCheckHook,
+ writableTmpDirAsHomeHook,
config,
cudaSupport ? config.cudaSupport,
@@ -47,15 +49,18 @@ buildPythonPackage (finalAttrs: {
pyopencl
];
- # Fails in the sandbox when cudaSupport is enabled:
- # pyopencl._cl.RuntimeError: no CL platforms available to ICD loader.
- # Install a CL driver ('ICD', such as pocl, rocm, Intel CL) to fix this.
- # See pyopencl docs for help: https://documen.tician.de/pyopencl/misc.html#installation
- pythonImportsCheck = lib.optionals (!cudaSupport) [
- "pymatting"
- ];
+ pythonImportsCheck = [ "pymatting" ];
- nativeCheckInputs = [ pytestCheckHook ];
+ nativeCheckInputs = [
+ pytestCheckHook
+ ]
+ ++ lib.optionals cudaSupport [
+ # Provides a CPU-based OpenCL ICD so that pyopencl's module-level
+ # cl.create_some_context() succeeds without GPU hardware.
+ pocl
+ # pocl needs a writable $HOME for its kernel cache directory.
+ writableTmpDirAsHomeHook
+ ];
disabledTests = [
# no access to input data set
@@ -67,7 +72,7 @@ buildPythonPackage (finalAttrs: {
];
disabledTestPaths = lib.optionals cudaSupport [
- # pyopencl._cl.LogicError: clGetPlatformIDs failed: PLATFORM_NOT_FOUND_KHR
+ # Requires a CUDA driver for cupy GPU operations.
"tests/test_foreground.py"
]; |
6244919 to
2fe6948
Compare
Nice, thanks a lot! |
2fe6948 to
b70b3ee
Compare
|
The treefmt check failed, please run |
b70b3ee to
e3d21ee
Compare
|
41ed897 to
260fc6a
Compare
da1bf10 to
5e6cb90
Compare
|
|
5e6cb90 to
68ff98f
Compare
| description = "one-stop solution for locating CUDA components"; | ||
| homepage = "https://github.com/NVIDIA/cuda-python/tree/main/cuda_pathfinder"; | ||
| changelog = "https://nvidia.github.io/cuda-python/cuda-pathfinder/${finalAttrs.version}/release/${finalAttrs.version}-notes.html"; | ||
| license = lib.licenses.unfreeRedistributable; # NVIDIA Proprietary Software |
There was a problem hiding this comment.
Is there one in lib.licenses for NVIDIA specifically that would work with
?There was a problem hiding this comment.
There was a problem hiding this comment.
Nice. Switched to asl20.
68ff98f to
8ad1990
Compare
Things done
cc @breakds @daniel-fahey
Fixes #495830
passthru.tests.nixpkgs-reviewon this PR. See nixpkgs-review usage../result/bin/.