Skip to content

Commit

Permalink
Merge pull request #25 from tbirdso/python-wrapping
Browse files Browse the repository at this point in the history
BUG: Get complex types for conditional wrapping
  • Loading branch information
tbirdso authored Feb 8, 2022
2 parents a333a73 + 4b76eac commit e94af3b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-test-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ jobs:
set PATH="C:\P\grep;%PATH%"
set CC=cl.exe
set CXX=cl.exe
C:\Python3${{ matrix.python-version-minor }}-x64\python.exe C:\P\IPP\scripts\windows_build_module_wheels.py --py-envs "3${{ matrix.python-version-minor }}-x64" --no-cleanup -- "-DOpenCL_INCLUDE_DIR:PATH=${{ github.workspace}}/../OpenCL-ICD-Loader/inc" "-DOpenCL_LIBRARY:FILEPATH=${{ github.workspace}}/../OpenCL-ICD-Loader-build/OpenCL.lib"
C:\Python3${{ matrix.python-version-minor }}-x64\python.exe C:\P\IPP\scripts\windows_build_module_wheels.py --py-envs "3${{ matrix.python-version-minor }}-x64" --no-cleanup --lib-paths="${{ github.workspace}}/../OpenCL-ICD-Loader-build" -- "-DOpenCL_INCLUDE_DIR:PATH=${{ github.workspace}}/../OpenCL-ICD-Loader/inc" "-DOpenCL_LIBRARY:FILEPATH=${{ github.workspace}}/../OpenCL-ICD-Loader-build/OpenCL.lib"
shell: cmd

- name: Publish Python package as GitHub Artifact
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-gpu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
opencl-headers-git-tag: "v2021.04.29"
opencl-version: 120
vkfft-backend: 3
itk-git-tag: "b1a0a91614dc091f9a17c1e4727095c80e9c05ea"
itk-git-tag: "ddef776afb46a6e135ba3c9f58a0e6e7e4a000be"
cmake-build-type: "MinSizeRel"
platform-name: "ubuntu-nvidia-gpu"
os: ubuntu-20.04
Expand Down
10 changes: 10 additions & 0 deletions wrapping/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
set(ITK_WRAP_COMPLEX_FLOAT OFF)
if("CF" IN_LIST WRAP_ITK_COMPLEX_REAL)
set(ITK_WRAP_COMPLEX_FLOAT ON)
endif()

set(ITK_WRAP_COMPLEX_DOUBLE OFF)
if("CD" IN_LIST WRAP_ITK_COMPLEX_REAL)
set(ITK_WRAP_COMPLEX_DOUBLE ON)
endif()

itk_wrap_module("VkFFTBackend")
itk_auto_load_submodules()
itk_end_wrap_module()

0 comments on commit e94af3b

Please sign in to comment.