File tree Expand file tree Collapse file tree 6 files changed +4
-6
lines changed Expand file tree Collapse file tree 6 files changed +4
-6
lines changed Original file line number Diff line number Diff line change 36
36
-D CMAKE_CXX_FLAGS="-O3 -Wall -Wextra -Wshadow -pedantic"
37
37
-D CMAKE_CXX_COMPILER=${{ matrix.compiler }}
38
38
-D CMAKE_Fortran_COMPILER=${{ matrix.fortran_compiler }}
39
- -D PYTHON_EXECUTABLE=/usr/bin/python3
40
39
-D Tasmanian_ENABLE_RECOMMENDED=ON
41
40
-D Tasmanian_ENABLE_FORTRAN=ON
42
41
-D Tasmanian_TESTS_OMP_NUM_THREADS=4 .. &&
Original file line number Diff line number Diff line change @@ -121,7 +121,6 @@ cmake \
121
121
-D CMAKE_BUILD_TYPE=Release \
122
122
-D CMAKE_CXX_FLAGS="-Wall -Wextra -Wshadow" \
123
123
-D CMAKE_CXX_COMPILER=/opt/rocm/bin/hipcc \
124
- -D PYTHON_EXECUTABLE=/usr/bin/python3 \
125
124
-D Tasmanian_ENABLE_OPENMP=ON \
126
125
-D Tasmanian_ENABLE_BLAS=ON \
127
126
-D Tasmanian_ENABLE_CUDA=OFF \
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ set(Tasmanian_license "BSD 3-Clause with UT-Battelle disclaimer") # used in some
30
30
# -D Tasmanian_EXTRA_LINK_DIRS:PATH="appends more link paths"
31
31
#
32
32
# Selecting specific packages for find_package()
33
- # -D PYTHON_EXECUTABLE :PATH
33
+ # -D Python_ROOT_DIR :PATH
34
34
# -D CMAKE_CUDA_COMPILER:PATH
35
35
# -D Tasmanian_MAGMA_ROOT:PATH (or just MAGMA_ROOT)
36
36
# -D MPI_CXX_COMPILER
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ unset(_tsg_opt)
34
34
########################################################################
35
35
# Stage 1: Build folder paths
36
36
########################################################################
37
- set (Tasmanian_string_python_hashbang "${PYTHON_EXECUTABLE } " )
37
+ set (Tasmanian_string_python_hashbang "${Python_EXECUTABLE } " )
38
38
39
39
if (${CMAKE_SYSTEM_NAME} STREQUAL "Windows" )
40
40
# windows puts the temp .dll files in Release or Debug subfolder, as opposed to directly in ${CMAKE_CURRENT_BINARY_DIR}
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env python3
2
2
3
3
# The hash-bang is used only but the GNU Make build system
4
- # The CMake build system uses the PYTHON_EXECUTABLE and ignores the hash-bang .
4
+ # The CMake build system ignores the hash-bang and uses the executable from find_package() .
5
5
6
6
import unittest
7
7
import TasmanianSG
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ CMAKE_CUDA_FLAGS_DEBUG @CMAKE_CUDA_FLAGS_DEBUG@
56
56
CMAKE_CUDA_FLAGS_RELEASE @CMAKE_CUDA_FLAGS_RELEASE@
57
57
Tasmanian_cudamathlibs @Tasmanian_cudamathlibs@
58
58
Tasmanian_cudaruntime @Tasmanian_cudaruntime@
59
- PYTHON_EXECUTABLE @PYTHON_EXECUTABLE @
59
+ Python_EXECUTABLE @Python_EXECUTABLE @
60
60
BUILD_SHARED_LIBS @BUILD_SHARED_LIBS@
61
61
BLAS_LIBRARIES @BLAS_LIBRARIES@
62
62
LAPACK_LIBRARIES @LAPACK_LIBRARIES@
You can’t perform that action at this time.
0 commit comments