Skip to content
Snippets Groups Projects
Verified Commit e377aa06 authored by Lars Bilke's avatar Lars Bilke
Browse files

[ci] Use container-makers --cpu-target flag.

parent b9ba034d
No related branches found
No related tags found
No related merge requests found
Subproject commit 03a8692f71aee9932a333d5a5d0f87e59084e697 Subproject commit 11e23b0d9e7df18973617ad193a1fdfb8ccc1e27
...@@ -19,7 +19,8 @@ build jupyter: ...@@ -19,7 +19,8 @@ build jupyter:
poetry run ogscm compiler.py ogs.py ogs_jupyter.py -B -R --ogs ../.. poetry run ogscm compiler.py ogs.py ogs_jupyter.py -B -R --ogs ../..
--build_args ' --progress=plain' --build_args ' --progress=plain'
--cvode --ccache --mfront --cvode --ccache --mfront
--cmake_args ' -DOGS_CPU_ARCHITECTURE=sandybridge -DOGS_BUILD_TESTING=OFF' --cpu-target sandybridge
--cmake_args ' -DOGS_CPU_ARCHITECTURE=OFF -DOGS_BUILD_TESTING=OFF'
--runtime_base_image 'jupyter/base-notebook' --runtime_base_image 'jupyter/base-notebook'
--tag $DOCKER_TAG_JUPYTER --tag $DOCKER_TAG_JUPYTER
$ON_MASTER_ARGS $ON_MASTER_ARGS
......
...@@ -75,7 +75,7 @@ if(COMPILER_IS_GCC OR COMPILER_IS_CLANG OR COMPILER_IS_INTEL) ...@@ -75,7 +75,7 @@ if(COMPILER_IS_GCC OR COMPILER_IS_CLANG OR COMPILER_IS_INTEL)
set(CPU_FLAGS -mavx2 -march=core-avx2) set(CPU_FLAGS -mavx2 -march=core-avx2)
elseif(OGS_CPU_ARCHITECTURE STREQUAL "generic") elseif(OGS_CPU_ARCHITECTURE STREQUAL "generic")
set(CPU_FLAGS -mtune=generic) set(CPU_FLAGS -mtune=generic)
elseif(NOT APPLE_ARM) elseif(NOT APPLE_ARM AND OGS_CPU_ARCHITECTURE)
set(CPU_FLAGS -march=${OGS_CPU_ARCHITECTURE}) set(CPU_FLAGS -march=${OGS_CPU_ARCHITECTURE})
endif() endif()
......
...@@ -43,5 +43,5 @@ CMake switches to enable / disable parts of OGS. ...@@ -43,5 +43,5 @@ CMake switches to enable / disable parts of OGS.
- `OGS_CXX_FLAGS` - Appends user-given compiler flags. Note that existing (CMake-given) flags are not replaced. - `OGS_CXX_FLAGS` - Appends user-given compiler flags. Note that existing (CMake-given) flags are not replaced.
- `OGS_PACKAGE_ADDITIONAL_BINARIES` - Package additional binaries (given as a `;`-separated list with relative paths to `CMAKE_BINARY_DIR`) into redistributables. Is used for bundling the OGS File Converter with the Data Explorer. - `OGS_PACKAGE_ADDITIONAL_BINARIES` - Package additional binaries (given as a `;`-separated list with relative paths to `CMAKE_BINARY_DIR`) into redistributables. Is used for bundling the OGS File Converter with the Data Explorer.
- `OGS_CPU_ARCHITECTURE` - Optimizes for the given CPU architecture see [-march](https://gcc.gnu.org/onlinedocs/gcc-4.5.3/gcc/i386-and-x86_002d64-Options.html)-flag. Defaults to `native`. For redistributable binaries set to `generic` on Linux and `core2` on Mac OS. - `OGS_CPU_ARCHITECTURE` - Optimizes for the given CPU architecture see [-march](https://gcc.gnu.org/onlinedocs/gcc-4.5.3/gcc/i386-and-x86_002d64-Options.html)-flag. Defaults to `native`. For redistributable binaries set to `generic` on Linux and `core2` on Mac OS. Can be disabled when set to `OFF`.
- `CMAKE_LIBRARY_SEARCH_PATH` - Additional library installation path, e.g. `/opt/local` or `C:/libs` - `CMAKE_LIBRARY_SEARCH_PATH` - Additional library installation path, e.g. `/opt/local` or `C:/libs`
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment