Skip to content

Commit

Permalink
Remove LD_LIBRARY_PATH workaround for LLVM.
Browse files Browse the repository at this point in the history
  • Loading branch information
ye-luo committed Oct 2, 2024
1 parent d339c84 commit 6ef00eb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 1 addition & 3 deletions tests/test_automation/github-actions/ci/run_step.sh
Original file line number Diff line number Diff line change
Expand Up @@ -311,8 +311,6 @@ case "$1" in

if [[ "${GH_JOBNAME}" =~ (Clang16-NoMPI-Offload) ]]
then
echo "Adding /usr/lib/llvm-12/lib/ to LD_LIBRARY_PATH to enable libomptarget.so"
export LD_LIBRARY_PATH=/usr/lib/llvm-12/lib/:${LD_LIBRARY_PATH}
export KMP_TEAMS_THREAD_LIMIT=1
# Run only unit tests (reasonable for CI)
TEST_LABEL="-L unit"
Expand Down Expand Up @@ -342,7 +340,7 @@ case "$1" in

if [[ "${GH_JOBNAME}" =~ (AFQMC-Offload) ]]
then
export LD_LIBRARY_PATH=/opt/llvm/15.0.0/lib:/usr/lib64/openmpi/lib:${LD_LIBRARY_PATH}
export LD_LIBRARY_PATH=/usr/lib64/openmpi/lib:${LD_LIBRARY_PATH}
fi

if [[ "${GH_JOBNAME}" =~ (Intel21) ]]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ case "$1" in

echo "Set PATHs to cuda-11.2"
export PATH=$HOME/opt/cuda/11.2/bin:$PATH
export LD_LIBRARY_PATH=$LLVM_DIR/lib:$LD_LIBRARY_PATH
export OMPI_CC=$LLVM_DIR/bin/clang
export OMPI_CXX=$LLVM_DIR/bin/clang++

Expand All @@ -78,7 +77,6 @@ case "$1" in
cmake -GNinja \
-DCMAKE_C_COMPILER=/usr/lib64/openmpi/bin/mpicc \
-DCMAKE_CXX_COMPILER=/usr/lib64/openmpi/bin/mpicxx \
-DCMAKE_EXE_LINKER_FLAGS="-L $LLVM_DIR/lib" \
-DMPIEXEC_EXECUTABLE=/usr/lib64/openmpi/bin/mpirun \
-DBOOST_ROOT=$BOOST_DIR \
-DBUILD_AFQMC=ON \
Expand Down

0 comments on commit 6ef00eb

Please sign in to comment.