Skip to content

Commit

Permalink
Fix and update Theta.
Browse files Browse the repository at this point in the history
Rate limit · GitHub

Whoa there!

You have triggered an abuse detection mechanism.

Please wait a few minutes before you try again;
in some cases this may take up to an hour.

ye-luo committed Jun 13, 2020
1 parent da962be commit e75cfc7
Showing 4 changed files with 7 additions and 16 deletions.
2 changes: 1 addition & 1 deletion CMake/IntelCompilers.cmake
Original file line number Diff line number Diff line change
@@ -44,7 +44,7 @@ ENDIF( INTEL_FTZ)
#------------------------
# Not on Cray's machine
#------------------------
IF(CMAKE_SYSTEM_NAME STREQUAL "CrayLinuxEnvironment")
IF(NOT CMAKE_SYSTEM_NAME STREQUAL "CrayLinuxEnvironment")

SET(X_OPTION "^-x| -x")
SET(AX_OPTION "^-ax| -ax")
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -469,7 +469,9 @@ IF(QMC_MPI)
SET(MPIEXEC_EXECUTABLE ${MPIEXEC})
ENDIF(DEFINED MPIEXEC AND NOT DEFINED MPIEXEC_EXECUTABLE)
SET(MPI_CXX_SKIP_MPICXX TRUE)
SET(MPI_DETERMINE_LIBRARY_VERSION TRUE)
IF(NOT CMAKE_CROSSCOMPILING)
SET(MPI_DETERMINE_LIBRARY_VERSION TRUE)
ENDIF()
FIND_PACKAGE(MPI COMPONENTS CXX)

IF(NOT MPI_FOUND)
11 changes: 3 additions & 8 deletions config/build_alcf_theta.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module unload cray-libsci
module load cray-hdf5-parallel
module load gcc
module load cmake
module load cmake/3.16.2

export CC=cc
export CXX=CC
@@ -14,20 +14,15 @@ Compiler=Intel

CURRENT_FOLDER=`pwd`

for name in real_AoS_legacy real_MP_AoS_legacy cplx_AoS_legacy cplx_MP_AoS_legacy \
real real_MP cplx cplx_MP
for name in real real_MP cplx cplx_MP
do

CMAKE_FLAGS="-D CMAKE_BUILD_TYPE=$TYPE -D MPIEXEC_EXECUTABLE=/bin/sh -D MPIEXEC_NUMPROC_FLAG=$CURRENT_FOLDER/tests/scripts/aprunhelper.sh"
CMAKE_FLAGS="-D CMAKE_SYSTEM_NAME=CrayLinuxEnvironment -D CMAKE_BUILD_TYPE=$TYPE -D MPIEXEC_EXECUTABLE=/bin/sh -D MPIEXEC_NUMPROC_FLAG=$CURRENT_FOLDER/tests/scripts/aprunhelper.sh"

if [[ $name == *"cplx"* ]]; then
CMAKE_FLAGS="$CMAKE_FLAGS -D QMC_COMPLEX=1"
fi

if [[ $name == *"_AoS_legacy"* ]]; then
CMAKE_FLAGS="$CMAKE_FLAGS -D ENABLE_SOA=0"
fi

if [[ $name == *"_MP"* ]]; then
CMAKE_FLAGS="$CMAKE_FLAGS -D QMC_MIXED_PRECISION=1"
fi
6 changes: 0 additions & 6 deletions config/build_tulip.sh
Original file line number Diff line number Diff line change
@@ -32,12 +32,6 @@ module load craype-accel-amd-gfx906
folder=build_MI60_Cray_offload_real_MP
mkdir $folder
cd $folder
cmake -DCMAKE_C_COMPILER=cc -DCMAKE_CXX_COMPILER=CC \
-DQMC_MIXED_PRECISION=1 -DENABLE_OFFLOAD=ON \
-DENABLE_TIMERS=1 -DCMAKE_SYSTEM_NAME=CrayLinuxEnvironment \
..
# some cmake error, need to cmake twice. probably Cray PE related.
# the above case works fine but not this case.
cmake -DCMAKE_C_COMPILER=cc -DCMAKE_CXX_COMPILER=CC \
-DQMC_MIXED_PRECISION=1 -DENABLE_OFFLOAD=ON \
-DENABLE_TIMERS=1 -DCMAKE_SYSTEM_NAME=CrayLinuxEnvironment \

0 comments on commit e75cfc7

Please sign in to comment.