Skip to content
Snippets Groups Projects
Commit 06e7b209 authored by Nils-Arne Dreier's avatar Nils-Arne Dreier Committed by Siddhant Tibrewal
Browse files

fix: use correct python interpreter in hiopy testing

parent 0cdbf9fe
No related branches found
No related tags found
No related merge requests found
......@@ -21,6 +21,7 @@ option(BUILD_SHARED_LIBS "Build shared libraries" ON)
set(THREADS_PREFER_PTHREAD_FLAG ON)
find_package(Threads REQUIRED)
find_package(MPI REQUIRED COMPONENTS CXX)
find_package(Python COMPONENTS Interpreter Development)
# for YAC, we use the pkg-config targets
find_package(YAC REQUIRED)
......
......@@ -3,7 +3,7 @@ set -e
dataset="meteogram_dataset.zarr"
rm -rf ${dataset}
python <<EOF
@Python_EXECUTABLE@ <<EOF
import hiopy.configure as hc
import zarr
......@@ -33,4 +33,4 @@ print(z.info)
print(z.tree())
EOF
@MPIEXEC_EXECUTABLE@ @MPIEXEC_NUMPROC_FLAG@ 1 python -m hiopy.worker ${dataset} : @MPIEXEC_NUMPROC_FLAG@ 1 @CMAKE_BINARY_DIR@/tests/simple_source -e 2000-01-01T00:01:00
@MPIEXEC_EXECUTABLE@ @MPIEXEC_NUMPROC_FLAG@ 1 @Python_EXECUTABLE@ -m hiopy.worker ${dataset} : @MPIEXEC_NUMPROC_FLAG@ 1 @CMAKE_BINARY_DIR@/tests/simple_source -e 2000-01-01T00:01:00
......@@ -4,7 +4,7 @@ set -e
dataset="simple_dataset.zarr"
rm -rf ${dataset}
python <<EOF
@Python_EXECUTABLE@ <<EOF
import zarr
import hiopy.configure as hc
......@@ -23,4 +23,4 @@ print(z.info)
print(z.tree())
EOF
@MPIEXEC_EXECUTABLE@ @MPIEXEC_NUMPROC_FLAG@ 1 python -m hiopy.worker ${dataset} --nthreads $1 : @MPIEXEC_NUMPROC_FLAG@ 1 @CMAKE_BINARY_DIR@/tests/simple_source -e 2000-01-01T00:01:00
@MPIEXEC_EXECUTABLE@ @MPIEXEC_NUMPROC_FLAG@ 1 @Python_EXECUTABLE@ -m hiopy.worker ${dataset} --nthreads $1 : @MPIEXEC_NUMPROC_FLAG@ 1 @CMAKE_BINARY_DIR@/tests/simple_source -e 2000-01-01T00:01:00
find_package(Python COMPONENTS Interpreter Development)
find_package(pybind11 CONFIG REQUIRED)
pybind11_add_module(coyote_py coyote_py.cpp)
......
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