Skip to content

Commit

Permalink
Ubuntu PowerPC fix
Browse files Browse the repository at this point in the history
  • Loading branch information
WrathfulSpatula committed Aug 27, 2024
1 parent 0aef1ce commit f3c02e4
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
cmake_minimum_required (VERSION 3.9)
project (Qrack VERSION 9.9.17 DESCRIPTION "High Performance Quantum Bit Simulation" LANGUAGES CXX)
project (Qrack VERSION 9.9.19 DESCRIPTION "High Performance Quantum Bit Simulation" LANGUAGES CXX)

# Installation commands
include (GNUInstallDirs)
Expand Down
8 changes: 6 additions & 2 deletions cmake/OpenCL.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ if (NOT OpenCL_FOUND)
endif()
endif ()

if (PACK_DEBIAN AND CMAKE_SYSTEM_PROCESSOR MATCHES "^ppc")
set (ENABLE_OPENCL OFF)
endif (PACK_DEBIAN AND CMAKE_SYSTEM_PROCESSOR MATCHES "^ppc")

message ("OpenCL Support is: ${ENABLE_OPENCL}")

if (ENABLE_OPENCL)
Expand Down Expand Up @@ -105,7 +109,7 @@ if (ENABLE_OPENCL)
src/qunitmulti.cpp
)

if (APPLE OR ${CMAKE_SYSTEM_PROCESSOR} MATCHES "^ppc")
if (APPLE OR CMAKE_SYSTEM_PROCESSOR MATCHES "^ppc")
include(FetchContent)
FetchContent_Declare (OpenCL-Headers
GIT_REPOSITORY https://github.com/KhronosGroup/OpenCL-Headers
Expand All @@ -121,6 +125,6 @@ if (ENABLE_OPENCL)
)
FetchContent_MakeAvailable(OpenCL-Headers OpenCL-ICD-Loader OpenCL-CLHPP)
target_include_directories (qrack PUBLIC ${CMAKE_BIN_DIR}/_deps/opencl-headers-src/ ${CMAKE_BIN_DIR}/_deps/opencl-clhpp-src/include/)
endif (APPLE OR ${CMAKE_SYSTEM_PROCESSOR} MATCHES "^ppc")
endif (APPLE OR CMAKE_SYSTEM_PROCESSOR MATCHES "^ppc")

endif (ENABLE_OPENCL)
6 changes: 6 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
libqrack (9.9.19) noble; urgency=medium

* Various optimizations; PowerPC fix (Noble 1/4)

-- Daniel Strano <[email protected]> Tue, 27 Aug 2024 19:53:20 -0400

libqrack (9.9.16) bionic; urgency=medium

* QUnitStateVector and QEngineOCL debugging (Bionic 4/4)
Expand Down

0 comments on commit f3c02e4

Please sign in to comment.