spack/var/spack/repos/builtin/packages/isaac-server/arm.patch
liuyangzhuan 83f97e8eba
Adding packages for gptune and its dependencies (#26936)
* added package gptune with all its dependencies: adding py-autotune, pygmo, py-pyaml, py-autotune, py-gpy, py-lhsmdu, py-hpbandster, pagmo2, py-opentuner; modifying superlu-dist, py-scikit-optimize

* adding gptune package

* minor fix for macos spack test

* update patch for py-scikit-optimize; update test files for gptune

* fixing gptune package style error

* fixing unit tests

* a few changes reviewed in the PR

* improved gptune package.py with a few newly added/improved dependencies

* fixed a few style errors

* minor fix on package name py-pyro4

* fixing more style errors

* Update var/spack/repos/builtin/packages/py-scikit-optimize/package.py

Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>

* resolved a few issues in the PR

* fixing file permissions

* a few minor changes

* style correction

* minor correction to jq package file

* Update var/spack/repos/builtin/packages/py-pyro4/package.py

Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>

* fixing a few issues in the PR

* adding py-selectors34 required by py-pyro4

* improved the superlu-dist package

* improved the superlu-dist package

* moree changes to gptune and py-selectors34 based on the PR

* Update var/spack/repos/builtin/packages/py-selectors34/package.py

Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>

Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
2021-11-24 16:06:43 -06:00

19 lines
650 B
Diff

diff -ru spack-src/server/CMakeLists.txt spack-src.new/server/CMakeLists.txt
--- spack-src/server/CMakeLists.txt 2018-06-12 23:00:55.000000000 +0900
+++ spack-src.new/server/CMakeLists.txt 2019-07-16 19:05:23.842478919 +0900
@@ -84,7 +84,13 @@
add_definitions(-DISAAC_JPEG)
endif (ISAAC_JPEG)
-add_definitions(-std=c++11 -march=native -mtune=native)
+if (CMAKE_SYSTEM_PROCESSOR STREQUAL aarch64 AND
+ CMAKE_C_COMPILER_ID STREQUAL GNU AND
+ CMAKE_C_COMPILER_VERSION VERSION_LESS 6.0)
+ add_definitions(-std=c++11)
+else ()
+ add_definitions(-std=c++11 -march=native -mtune=native)
+endif ()
add_executable(isaac ${HDRS} ${SRCS})