Skip to content

Instantly share code, notes, and snippets.

@GaetanLepage
Created February 20, 2024 23:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save GaetanLepage/5cbaefd048c13626eb2eacf567809e49 to your computer and use it in GitHub Desktop.
Save GaetanLepage/5cbaefd048c13626eb2eacf567809e49 to your computer and use it in GitHub Desktop.
GPU tests for `python3Packages.gpuctypes`
Sourcing python-remove-tests-dir-hook
Sourcing python-catch-conflicts-hook.sh
Sourcing python-remove-bin-bytecode-hook.sh
Sourcing pypa-build-hook
Using pypaBuildPhase
Sourcing python-runtime-deps-check-hook
Using pythonRuntimeDepsCheckHook
Sourcing pypa-install-hook
Using pypaInstallPhase
Sourcing python-imports-check-hook.sh
Using pythonImportsCheckPhase
Sourcing python-namespaces-hook
Sourcing python-catch-conflicts-hook.sh
Sourcing pytest-check-hook
Using pytestCheckPhase
@nix { "action": "setPhase", "phase": "unpackPhase" }
Running phase: unpackPhase
unpacking source archive /nix/store/6n2wdrgjmcjkw4m3lm0bnwxqv6fim1vm-source
source root is source
setting SOURCE_DATE_EPOCH to timestamp 315619200 of file source/test/test_opencl.py
@nix { "action": "setPhase", "phase": "patchPhase" }
Running phase: patchPhase
applying patch /nix/store/3mh0vamw9hwfjz459kjmr760jp84ww4h-0001-fix-dlopen-cuda.patch
patching file gpuctypes/cuda.py
substituteStream(): WARNING: '--replace' is deprecated, use --replace-{fail,warn,quiet}. (file 'gpuctypes/opencl.py')
@nix { "action": "setPhase", "phase": "updateAutotoolsGnuConfigScriptsPhase" }
Running phase: updateAutotoolsGnuConfigScriptsPhase
@nix { "action": "setPhase", "phase": "configurePhase" }
Running phase: configurePhase
no configure script, doing nothing
@nix { "action": "setPhase", "phase": "buildPhase" }
Running phase: buildPhase
Executing pypaBuildPhase
Creating a wheel...
* Getting build dependencies for wheel...
running egg_info
creating gpuctypes.egg-info
writing gpuctypes.egg-info/PKG-INFO
writing dependency_links to gpuctypes.egg-info/dependency_links.txt
writing top-level names to gpuctypes.egg-info/top_level.txt
writing manifest file 'gpuctypes.egg-info/SOURCES.txt'
reading manifest file 'gpuctypes.egg-info/SOURCES.txt'
adding license file 'LICENSE'
writing manifest file 'gpuctypes.egg-info/SOURCES.txt'
* Building wheel...
running bdist_wheel
running build
running build_py
creating build
creating build/lib
creating build/lib/gpuctypes
copying gpuctypes/opencl.py -> build/lib/gpuctypes
copying gpuctypes/cuda.py -> build/lib/gpuctypes
copying gpuctypes/comgr.py -> build/lib/gpuctypes
copying gpuctypes/hip.py -> build/lib/gpuctypes
running egg_info
writing gpuctypes.egg-info/PKG-INFO
writing dependency_links to gpuctypes.egg-info/dependency_links.txt
writing top-level names to gpuctypes.egg-info/top_level.txt
reading manifest file 'gpuctypes.egg-info/SOURCES.txt'
adding license file 'LICENSE'
writing manifest file 'gpuctypes.egg-info/SOURCES.txt'
installing to build/bdist.linux-x86_64/wheel
running install
running install_lib
creating build/bdist.linux-x86_64
creating build/bdist.linux-x86_64/wheel
creating build/bdist.linux-x86_64/wheel/gpuctypes
copying build/lib/gpuctypes/opencl.py -> build/bdist.linux-x86_64/wheel/gpuctypes
copying build/lib/gpuctypes/cuda.py -> build/bdist.linux-x86_64/wheel/gpuctypes
copying build/lib/gpuctypes/comgr.py -> build/bdist.linux-x86_64/wheel/gpuctypes
copying build/lib/gpuctypes/hip.py -> build/bdist.linux-x86_64/wheel/gpuctypes
running install_egg_info
Copying gpuctypes.egg-info to build/bdist.linux-x86_64/wheel/gpuctypes-0.3.0-py3.11.egg-info
running install_scripts
creating build/bdist.linux-x86_64/wheel/gpuctypes-0.3.0.dist-info/WHEEL
creating '/build/source/dist/.tmp-q5lra928/gpuctypes-0.3.0-py3-none-any.whl' and adding 'build/bdist.linux-x86_64/wheel' to it
adding 'gpuctypes/comgr.py'
adding 'gpuctypes/cuda.py'
adding 'gpuctypes/hip.py'
adding 'gpuctypes/opencl.py'
adding 'gpuctypes-0.3.0.dist-info/LICENSE'
adding 'gpuctypes-0.3.0.dist-info/METADATA'
adding 'gpuctypes-0.3.0.dist-info/WHEEL'
adding 'gpuctypes-0.3.0.dist-info/top_level.txt'
adding 'gpuctypes-0.3.0.dist-info/RECORD'
removing build/bdist.linux-x86_64/wheel
Successfully built gpuctypes-0.3.0-py3-none-any.whl
Finished creating a wheel...
Finished executing pypaBuildPhase
@nix { "action": "setPhase", "phase": "pythonRuntimeDepsCheckHook" }
Running phase: pythonRuntimeDepsCheckHook
Executing pythonRuntimeDepsCheck
Checking runtime dependencies for gpuctypes-0.3.0-py3-none-any.whl
Finished executing pythonRuntimeDepsCheck
@nix { "action": "setPhase", "phase": "installPhase" }
Running phase: installPhase
Executing pypaInstallPhase
Successfully installed gpuctypes-0.3.0-py3-none-any.whl
Finished executing pypaInstallPhase
@nix { "action": "setPhase", "phase": "pythonOutputDistPhase" }
Running phase: pythonOutputDistPhase
Executing pythonOutputDistPhase
Finished executing pythonOutputDistPhase
@nix { "action": "setPhase", "phase": "fixupPhase" }
Running phase: fixupPhase
shrinking RPATHs of ELF executables and libraries in /nix/store/y7nlnmn2cy9lii9rpwz5f7yn1pqjsnm8-python3.11-gpuctypes-0.3.0
checking for references to /build/ in /nix/store/y7nlnmn2cy9lii9rpwz5f7yn1pqjsnm8-python3.11-gpuctypes-0.3.0...
patching script interpreter paths in /nix/store/y7nlnmn2cy9lii9rpwz5f7yn1pqjsnm8-python3.11-gpuctypes-0.3.0
stripping (with command strip and flags -S -p) in /nix/store/y7nlnmn2cy9lii9rpwz5f7yn1pqjsnm8-python3.11-gpuctypes-0.3.0/lib
shrinking RPATHs of ELF executables and libraries in /nix/store/35j5va336fivp38r2pkqclqwf0l9bsrx-python3.11-gpuctypes-0.3.0-dist
checking for references to /build/ in /nix/store/35j5va336fivp38r2pkqclqwf0l9bsrx-python3.11-gpuctypes-0.3.0-dist...
patching script interpreter paths in /nix/store/35j5va336fivp38r2pkqclqwf0l9bsrx-python3.11-gpuctypes-0.3.0-dist
Executing pythonRemoveTestsDir
Finished executing pythonRemoveTestsDir
@nix { "action": "setPhase", "phase": "installCheckPhase" }
Running phase: installCheckPhase
no Makefile or custom installCheckPhase, doing nothing
@nix { "action": "setPhase", "phase": "pythonCatchConflictsPhase" }
Running phase: pythonCatchConflictsPhase
@nix { "action": "setPhase", "phase": "pythonRemoveBinBytecodePhase" }
Running phase: pythonRemoveBinBytecodePhase
@nix { "action": "setPhase", "phase": "pythonImportsCheckPhase" }
Running phase: pythonImportsCheckPhase
Executing pythonImportsCheckPhase
Check whether the following modules can be imported: gpuctypes
@nix { "action": "setPhase", "phase": "pytestCheckPhase" }
Running phase: pytestCheckPhase
Executing pytestCheckPhase
============================= test session starts ==============================
platform linux -- Python 3.11.7, pytest-7.4.4, pluggy-1.4.0 -- /nix/store/y027d3bvlaizbri04c1bzh28hqd6lj01-python3-3.11.7/bin/python3.11
cachedir: .pytest_cache
rootdir: /build/source
collecting ... 
collected 5 items 
test/test_cuda.py::TestCUDA::test_compile PASSED [ 20%]
test/test_cuda.py::TestCUDA::test_compile_fail PASSED [ 40%]
test/test_cuda.py::TestCUDA::test_has_methods PASSED [ 60%]
test/test_cuda.py::TestCUDADevice::test_device_count PASSED [ 80%]
test/test_cuda.py::TestCUDADevice::test_malloc PASSED [100%]
============================== 5 passed in 0.18s ===============================
Finished executing pytestCheckPhase
@nix { "action": "setPhase", "phase": "pytestcachePhase" }
Running phase: pytestcachePhase
@nix { "action": "setPhase", "phase": "pytestRemoveBytecodePhase" }
Running phase: pytestRemoveBytecodePhase
Sourcing python-remove-tests-dir-hook
Sourcing python-catch-conflicts-hook.sh
Sourcing python-remove-bin-bytecode-hook.sh
Sourcing pypa-build-hook
Using pypaBuildPhase
Sourcing python-runtime-deps-check-hook
Using pythonRuntimeDepsCheckHook
Sourcing pypa-install-hook
Using pypaInstallPhase
Sourcing python-imports-check-hook.sh
Using pythonImportsCheckPhase
Sourcing python-namespaces-hook
Sourcing python-catch-conflicts-hook.sh
Sourcing pytest-check-hook
Using pytestCheckPhase
@nix { "action": "setPhase", "phase": "unpackPhase" }
Running phase: unpackPhase
unpacking source archive /nix/store/6n2wdrgjmcjkw4m3lm0bnwxqv6fim1vm-source
source root is source
setting SOURCE_DATE_EPOCH to timestamp 315619200 of file source/test/test_opencl.py
@nix { "action": "setPhase", "phase": "patchPhase" }
Running phase: patchPhase
applying patch /nix/store/6iln6glmgpyir4y4sycmxcrahp7yrfdg-0001-fix-dlopen-cuda.patch
patching file gpuctypes/cuda.py
substituteStream(): WARNING: '--replace' is deprecated, use --replace-{fail,warn,quiet}. (file 'gpuctypes/opencl.py')
@nix { "action": "setPhase", "phase": "updateAutotoolsGnuConfigScriptsPhase" }
Running phase: updateAutotoolsGnuConfigScriptsPhase
@nix { "action": "setPhase", "phase": "configurePhase" }
Running phase: configurePhase
no configure script, doing nothing
@nix { "action": "setPhase", "phase": "buildPhase" }
Running phase: buildPhase
Executing pypaBuildPhase
Creating a wheel...
* Getting build dependencies for wheel...
running egg_info
creating gpuctypes.egg-info
writing gpuctypes.egg-info/PKG-INFO
writing dependency_links to gpuctypes.egg-info/dependency_links.txt
writing top-level names to gpuctypes.egg-info/top_level.txt
writing manifest file 'gpuctypes.egg-info/SOURCES.txt'
reading manifest file 'gpuctypes.egg-info/SOURCES.txt'
adding license file 'LICENSE'
writing manifest file 'gpuctypes.egg-info/SOURCES.txt'
* Building wheel...
running bdist_wheel
running build
running build_py
creating build
creating build/lib
creating build/lib/gpuctypes
copying gpuctypes/opencl.py -> build/lib/gpuctypes
copying gpuctypes/cuda.py -> build/lib/gpuctypes
copying gpuctypes/comgr.py -> build/lib/gpuctypes
copying gpuctypes/hip.py -> build/lib/gpuctypes
running egg_info
writing gpuctypes.egg-info/PKG-INFO
writing dependency_links to gpuctypes.egg-info/dependency_links.txt
writing top-level names to gpuctypes.egg-info/top_level.txt
reading manifest file 'gpuctypes.egg-info/SOURCES.txt'
adding license file 'LICENSE'
writing manifest file 'gpuctypes.egg-info/SOURCES.txt'
installing to build/bdist.linux-x86_64/wheel
running install
running install_lib
creating build/bdist.linux-x86_64
creating build/bdist.linux-x86_64/wheel
creating build/bdist.linux-x86_64/wheel/gpuctypes
copying build/lib/gpuctypes/opencl.py -> build/bdist.linux-x86_64/wheel/gpuctypes
copying build/lib/gpuctypes/cuda.py -> build/bdist.linux-x86_64/wheel/gpuctypes
copying build/lib/gpuctypes/comgr.py -> build/bdist.linux-x86_64/wheel/gpuctypes
copying build/lib/gpuctypes/hip.py -> build/bdist.linux-x86_64/wheel/gpuctypes
running install_egg_info
Copying gpuctypes.egg-info to build/bdist.linux-x86_64/wheel/gpuctypes-0.3.0-py3.11.egg-info
running install_scripts
creating build/bdist.linux-x86_64/wheel/gpuctypes-0.3.0.dist-info/WHEEL
creating '/build/source/dist/.tmp-c2ubl3ws/gpuctypes-0.3.0-py3-none-any.whl' and adding 'build/bdist.linux-x86_64/wheel' to it
adding 'gpuctypes/comgr.py'
adding 'gpuctypes/cuda.py'
adding 'gpuctypes/hip.py'
adding 'gpuctypes/opencl.py'
adding 'gpuctypes-0.3.0.dist-info/LICENSE'
adding 'gpuctypes-0.3.0.dist-info/METADATA'
adding 'gpuctypes-0.3.0.dist-info/WHEEL'
adding 'gpuctypes-0.3.0.dist-info/top_level.txt'
adding 'gpuctypes-0.3.0.dist-info/RECORD'
removing build/bdist.linux-x86_64/wheel
Successfully built gpuctypes-0.3.0-py3-none-any.whl
Finished creating a wheel...
Finished executing pypaBuildPhase
@nix { "action": "setPhase", "phase": "pythonRuntimeDepsCheckHook" }
Running phase: pythonRuntimeDepsCheckHook
Executing pythonRuntimeDepsCheck
Checking runtime dependencies for gpuctypes-0.3.0-py3-none-any.whl
Finished executing pythonRuntimeDepsCheck
@nix { "action": "setPhase", "phase": "installPhase" }
Running phase: installPhase
Executing pypaInstallPhase
Successfully installed gpuctypes-0.3.0-py3-none-any.whl
Finished executing pypaInstallPhase
@nix { "action": "setPhase", "phase": "pythonOutputDistPhase" }
Running phase: pythonOutputDistPhase
Executing pythonOutputDistPhase
Finished executing pythonOutputDistPhase
@nix { "action": "setPhase", "phase": "fixupPhase" }
Running phase: fixupPhase
shrinking RPATHs of ELF executables and libraries in /nix/store/jnxvl8yfl6ihymrgnndjyb3i32svqahj-python3.11-gpuctypes-0.3.0
checking for references to /build/ in /nix/store/jnxvl8yfl6ihymrgnndjyb3i32svqahj-python3.11-gpuctypes-0.3.0...
patching script interpreter paths in /nix/store/jnxvl8yfl6ihymrgnndjyb3i32svqahj-python3.11-gpuctypes-0.3.0
stripping (with command strip and flags -S -p) in /nix/store/jnxvl8yfl6ihymrgnndjyb3i32svqahj-python3.11-gpuctypes-0.3.0/lib
shrinking RPATHs of ELF executables and libraries in /nix/store/jlpgijhjpvhnq08xximvflzgcq8z7sl8-python3.11-gpuctypes-0.3.0-dist
checking for references to /build/ in /nix/store/jlpgijhjpvhnq08xximvflzgcq8z7sl8-python3.11-gpuctypes-0.3.0-dist...
patching script interpreter paths in /nix/store/jlpgijhjpvhnq08xximvflzgcq8z7sl8-python3.11-gpuctypes-0.3.0-dist
Executing pythonRemoveTestsDir
Finished executing pythonRemoveTestsDir
@nix { "action": "setPhase", "phase": "installCheckPhase" }
Running phase: installCheckPhase
no Makefile or custom installCheckPhase, doing nothing
@nix { "action": "setPhase", "phase": "pythonCatchConflictsPhase" }
Running phase: pythonCatchConflictsPhase
@nix { "action": "setPhase", "phase": "pythonRemoveBinBytecodePhase" }
Running phase: pythonRemoveBinBytecodePhase
@nix { "action": "setPhase", "phase": "pythonImportsCheckPhase" }
Running phase: pythonImportsCheckPhase
Executing pythonImportsCheckPhase
Check whether the following modules can be imported: gpuctypes
@nix { "action": "setPhase", "phase": "pytestCheckPhase" }
Running phase: pytestCheckPhase
Executing pytestCheckPhase
============================= test session starts ==============================
platform linux -- Python 3.11.7, pytest-7.4.4, pluggy-1.4.0 -- /nix/store/y027d3bvlaizbri04c1bzh28hqd6lj01-python3-3.11.7/bin/python3.11
cachedir: .pytest_cache
rootdir: /build/source
collecting ... 
collected 4 items 
test/test_opencl.py::TestOpenCL::test_bad_program PASSED [ 25%]
test/test_opencl.py::TestOpenCL::test_create_program PASSED [ 50%]
test/test_opencl.py::TestOpenCL::test_malloc PASSED [ 75%]
test/test_opencl.py::TestOpenCL::test_run_program PASSED [100%]
============================== 4 passed in 0.99s ===============================
Finished executing pytestCheckPhase
@nix { "action": "setPhase", "phase": "pytestcachePhase" }
Running phase: pytestcachePhase
@nix { "action": "setPhase", "phase": "pytestRemoveBytecodePhase" }
Running phase: pytestRemoveBytecodePhase
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment