Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rocal pybind - accepts Python version for build #96

Merged
merged 1 commit into from
Feb 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ option(BUILD_DEV "Build rocAL Development Package" ON)
option(AMD_FP16_SUPPORT "Build rocAL with float16 Support" OFF)
option(BUILD_PYPACKAGE "Build rocAL Python Package" ON)
option(BUILD_WITH_AMD_ADVANCE "Build rocAL for advanced AMD GPU Architecture" OFF)
option(PYTHONVERSION "Python version to build rocal" "")

set(DEFAULT_BUILD_TYPE "Release")

Expand Down
12 changes: 8 additions & 4 deletions rocAL_pybind/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,13 @@ set(ROCAL_PYTHON ON)
find_package(AMDRPP QUIET)
find_package(MIVisionX QUIET)
find_package(TurboJpeg QUIET)
set(Python3_FIND_VIRTUALENV FIRST)
find_package(Python3 QUIET COMPONENTS Interpreter Development)
find_package(pybind11 QUIET CONFIG)
if (PYTHONVERSION)
find_package(Python3 "${PYTHONVERSION}" EXACT QUIET COMPONENTS Interpreter Development)
else()
set(Python3_FIND_VIRTUALENV FIRST)
find_package(Python3 QUIET COMPONENTS Interpreter Development)
endif()
find_package(pybind11 QUIET CONFIG)
find_package(HALF QUIET)

# Backend
Expand Down Expand Up @@ -280,4 +284,4 @@ if(${BUILD_ROCAL_PYBIND})
message("-- ${Green}Radeon Augmentation Library Python Binding - rocal_pybind module added ${ColourReset}")
else()
message("-- ${Red}WARNING: rocAL PyBind Module excluded - Dependency Failure${ColourReset}")
endif()
endif()
Loading