-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
185 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
#!/bin/bash | ||
set -ex | ||
|
||
source /etc/profile.d/modules.sh &> /dev/null | ||
module use ~/modulefiles | ||
|
||
cd /home/pvelesko/GAMESS/gamess_libcchem_hip | ||
|
||
export IGC_EnableDPEmulation=1 | ||
export OverrideDefaultFP64Settings=1 | ||
|
||
module purge | ||
module load llvm/18.0 | ||
module load HIP/chipStar/testing | ||
module load hdf5/1.14.4.2 | ||
module load openmpi/4.1.1 | ||
module load HipSolver/2024.05.15-807efe2 | ||
|
||
export JSON_ROOT=$PWD/../json | ||
export MATHLIB_ROOT=$HIP_DIR | ||
export GPU_BOARD=Intel | ||
export OMP_NUM_THREADS=1 | ||
|
||
export MPI_CXX=mpic++ | ||
rm -rf build && mkdir build && cd build | ||
cmake -DMPI_ROOT=$MPI_ROOT -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_COMPILER=clang++ -DJSON_ROOT=$JSON_ROOT -DHDF5_ROOT=$HDF5_ROOT -DHIP=True -DMATHLIB_ROOT=$MATHLIB_ROOT -DHIPSOLVER_ROOT=$HIPSOLVER_ROOT -DBUILD_RIMP2=0 -DMAGMA=False -DGPU_BOARD=$GPU_BOARD -DMKLROOT=$MKLROOT ../ | ||
make -j $(nproc) | ||
cd .. | ||
|
||
export IGC_ForceOCLSIMDWidth=16 | ||
#export ZE_AFFINITY_MASK=0.0 | ||
|
||
orterun --mca btl vader,self,tcp -np 2 --bind-to core --map-by ppr:2:node ./build/exess ./inputs/json_inputs/scf/w1.json 2>&1 | tee gamess_output.txt | ||
|
||
# Extract the floating point number from the output file | ||
energy=$(grep "Final energy is:" gamess_output.txt | awk '{print $4}') | ||
correct_energy=-74.9612532341291 | ||
|
||
# Define the tolerance value | ||
tol=0.0001 | ||
|
||
# Calculate the absolute difference between the energy and the correct energy | ||
diff=$(echo "$energy - $correct_energy" | bc | tr -d -) | ||
|
||
# Compare the absolute difference with the tolerance value | ||
comparison=$(echo "$diff < $tol" | bc) | ||
|
||
if [ $comparison -eq 1 ] | ||
then | ||
echo "The energy value is within the tolerance." | ||
exit 0 | ||
else | ||
echo "The energy value is not within the tolerance." | ||
exit 1 | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#!/bin/bash | ||
|
||
set -ex | ||
|
||
source /etc/profile.d/modules.sh &> /dev/null | ||
module use ~/modulefiles | ||
|
||
export IGC_EnableDPEmulation=1 | ||
export OverrideDefaultFP64Settings=1 | ||
export CHIP_LOGLEVEL=err | ||
|
||
module purge | ||
module load llvm/18.0 | ||
module load HIP/chipStar/testing | ||
|
||
cd /home/pvelesko/libCEED | ||
git co HEAD -f | ||
git pull | ||
make clean | ||
|
||
make FC= CC=hipcc CXX=hipcc BACKENDS="/gpu/hip/ref /gpu/hip/shared /gpu/hip/gen" -j $(nproc) test | tee libceed_output.txt | ||
if grep -q "not ok" "libceed_output.txt"; then | ||
echo "FAIL" | ||
awk '/Test Summary Report/,EOF' "libceed_output.txt" | ||
exit 1 | ||
else | ||
echo "PASS" | ||
exit 0 | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters