Skip to content

Commit

Permalink
heffte cuda
Browse files Browse the repository at this point in the history
  • Loading branch information
djdunning committed Jul 25, 2024
1 parent 3550b99 commit 914ddbb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .conda/heffte/cuda/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ fi

source "$RECIPE_DIR/../../cross-compile-setup.sh"

export OMPI_CXX=nvcc
#export OMPI_CXX=nvcc
# Only do this for cross compiling
#if [ "$PLATFORM" != "linux-64" ] ; then
# export NVCC_PREPEND_FLAGS="-ccbin $CXX";
Expand All @@ -24,15 +24,15 @@ export LIBRARIES="$LIBRARIES \"-L$PREFIX/lib\""

cmake -D CMAKE_BUILD_TYPE:STRING=RELEASE \
-D BUILD_SHARED_LIBS=ON \
-D CMAKE_CXX_COMPILER=${OMPI_CXX} \
# -D CMAKE_CXX_COMPILER=${OMPI_CXX} \
-D CMAKE_INSTALL_PREFIX:PATH=$PREFIX \
-D CMAKE_CXX_STANDARD:STRING=17 \
-D Heffte_ENABLE_CUDA=ON \
-D Heffte_DISABLE_GPU_AWARE_MPI=ON \
$CMAKE_ARGS \
$SRC_DIR \
# -D CMAKE_CXX_FLAGS="$PATCHED_CXXFLAGS" \
-D CMAKE_CUDA_COMPILER=${OMPI_CXX} \
# -D CMAKE_CUDA_COMPILER=${OMPI_CXX} \
# -D MPI_C_COMPILER="$BUILD_PREFIX/bin/mpicc" \
# -D MPI_CXX_COMPILER="$BUILD_PREFIX/bin/mpicxx" \
# -D CMAKE_CUDA_HOST_LINK_LAUNCHER=$CXX \
Expand Down

0 comments on commit 914ddbb

Please sign in to comment.