-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #160 from OP-DSL/develop
Prepare for the release V1.0.0
- Loading branch information
Showing
4,317 changed files
with
417 additions
and
728,218 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
stages: | ||
- API_Build | ||
- APP_Build | ||
- HIP | ||
- test | ||
- docs | ||
- clean | ||
|
@@ -22,6 +23,118 @@ build:GNU:API: | |
paths: | ||
- $CI_PROJECT_DIR/OPS-INSTALL | ||
|
||
Test:HIP: | ||
stage: HIP | ||
tags: | ||
- CCP, test | ||
script: | ||
- |- | ||
export PATH=/opt/rocm-4.5.0/bin:$PATH | ||
export OPS_COMPILER=hip | ||
export MPI_INSTALL_PATH=/usr | ||
export HDF5_INSTALL_PATH=/usr/lib/x86_64-linux-gnu/hdf5/openmpi | ||
export HIP_INSTALL_PATH=/opt/rocm-4.5.0/ | ||
export OPS_INSTALL_PATH=$CI_PROJECT_DIR/ops | ||
export MPICC=mpicc | ||
export MPICXX=mpic++ | ||
export MPICPP=mpicxx | ||
export MPIFC=mpif90 | ||
export MPIF90=mpif90 | ||
export MPI_INC=/usr/lib/x86_64-linux-gnu/openmpi/include | ||
export XCOMPILER=-Xcompiler | ||
export HIP_LINK="-L/usr/local/cuda/lib64 -lcudart" | ||
export HIP_HDF5_MPI_LINK="-L/usr/lib/x86_64-linux-gnu/hdf5/openmpi/lib -lmpi_cxx -lmpi" | ||
export HIPMPICPP=mpicxx | ||
export HIPIEEE="--fmad false" | ||
export HIP_PLATFORM=nvidia | ||
- cd ops/c | ||
- make seq IEEE=1 | ||
- make hip IEEE=1 | ||
- make hdf5_seq IEEE=1 | ||
- cd ../../apps/c | ||
- cd CloverLeaf | ||
- make cloverleaf_hip IEEE=1 | ||
- |- | ||
./cloverleaf_hip OPS_BLOCK_SIZE_X=64 OPS_BLOCK_SIZE_Y=4 > perf_out | ||
grep "PASSED" clover.out | ||
rc=$?; if [[ $rc != 0 ]]; then echo "TEST FAILED";exit $rc; fi | ||
- cd ../CloverLeaf_3D | ||
- make cloverleaf_hip IEEE=1 | ||
- |- | ||
./cloverleaf_hip OPS_BLOCK_SIZE_X=64 OPS_BLOCK_SIZE_Y=4 > perf_out | ||
grep "PASSED" clover.out | ||
rc=$?; if [[ $rc != 0 ]]; then echo "TEST FAILED";exit $rc; fi | ||
- cd ../CloverLeaf_3D_HDF5 | ||
- make cloverleaf_hip IEEE=1 | ||
- make generate_file IEEE=1 | ||
- |- | ||
./generate_file | ||
./cloverleaf_hip OPS_BLOCK_SIZE_X=64 OPS_BLOCK_SIZE_Y=4 > perf_out | ||
grep "PASSED" clover.out | ||
rc=$?; if [[ $rc != 0 ]]; then echo "TEST FAILED";exit $rc; fi | ||
- cd ../lowdim_test | ||
- make lowdim_hip | ||
- |- | ||
./lowdim_hip OPS_BLOCK_SIZE_X=64 OPS_BLOCK_SIZE_Y=4 > perf_out | ||
grep "PASSED" perf_out | ||
rc=$?; if [[ $rc != 0 ]]; then echo "TEST FAILED";exit $rc; fi | ||
- cd ../mblock | ||
- make mblock_hip | ||
- |- | ||
./mblock_hip OPS_BLOCK_SIZE_X=64 OPS_BLOCK_SIZE_Y=4 > mblock.out | ||
grep "PASSED" mblock.out | ||
rc=$?; if [[ $rc != 0 ]]; then echo "TEST FAILED";exit $rc; fi | ||
- cd ../mb_shsgc/Max_datatransfer | ||
# - make shsgc_hip | ||
# - |- | ||
# ./shsgc_hip OPS_BLOCK_SIZE_X=64 OPS_BLOCK_SIZE_Y=4 > perf_out | ||
# grep "Pre shock error is:" perf_out | ||
# grep "Post shock error is:" perf_out | ||
# grep "Post shock Error is" perf_out | ||
# grep "Total Wall time" perf_out | ||
# grep -e "acceptable" -e "correct" perf_out | ||
# rc=$?; if [[ $rc != 0 ]]; then echo "TEST FAILED";exit $rc; fi | ||
- cd ../../multiDim | ||
- make multidim_hip | ||
- |- | ||
./multidim_hip OPS_BLOCK_SIZE_X=64 OPS_BLOCK_SIZE_Y=4 > perf_out | ||
grep "PASSED" perf_out | ||
rc=$?; if [[ $rc != 0 ]]; then echo "TEST FAILED";exit $rc; fi | ||
- cd ../multiDim3D | ||
- make multidim_hip | ||
- |- | ||
./multidim_hip OPS_BLOCK_SIZE_X=64 OPS_BLOCK_SIZE_Y=4 > perf_out | ||
grep "PASSED" perf_out | ||
rc=$?; if [[ $rc != 0 ]]; then echo "TEST FAILED";exit $rc; fi | ||
- cd ../poisson | ||
- make poisson_hip | ||
- |- | ||
./poisson_hip OPS_BLOCK_SIZE_X=64 OPS_BLOCK_SIZE_Y=4 > perf_out | ||
grep "PASSED" perf_out | ||
rc=$?; if [[ $rc != 0 ]]; then echo "TEST FAILED";exit $rc; fi | ||
- cd ../shsgc | ||
- make shsgc_hip | ||
- |- | ||
./shsgc_hip OPS_BLOCK_SIZE_X=64 OPS_BLOCK_SIZE_Y=4 > perf_out | ||
grep "PASSED" perf_out | ||
rc=$?; if [[ $rc != 0 ]]; then echo "TEST FAILED";exit $rc; fi | ||
- cd ../TeaLeaf | ||
- make tealeaf_hip | ||
- |- | ||
./tealeaf_hip OPS_BLOCK_SIZE_X=64 OPS_BLOCK_SIZE_Y=4 > perf_out | ||
grep "PASSED" perf_out | ||
rc=$?; if [[ $rc != 0 ]]; then echo "TEST FAILED";exit $rc; fi | ||
- cd ../multiDim_HDF5 | ||
- make -f Makefile.write write_hip | ||
- rm .generated | ||
- make read_hip | ||
- |- | ||
rm -rf write_data.h5 read_data.h5 | ||
./write_hip OPS_BLOCK_SIZE_X=64 OPS_BLOCK_SIZE_Y=4 | ||
./read_hip OPS_BLOCK_SIZE_X=64 OPS_BLOCK_SIZE_Y=4 | ||
h5diff write_data.h5 read_data.h5 | ||
rc=$?; if [[ $rc != 0 ]]; then echo "TEST FAILED";exit $rc; else echo "TEST PASSED"; fi | ||
build:Intel:API: | ||
stage: API_Build | ||
tags: | ||
|
@@ -149,6 +262,53 @@ build:Intel:APP: | |
except: | ||
- master | ||
|
||
build:Translator:App: | ||
stage: APP_Build | ||
tags: | ||
- CCP, test | ||
script: | ||
- export PATH=$PATH:$CI_PROJECT_DIR/ops_translator/c:$CI_PROJECT_DIR/ops_translator/fortran | ||
- git clone [email protected]:OP-DSL/OPS-APPS.git | ||
- cd OPS-APPS | ||
- rm -r -f c | ||
- cp -r $CI_PROJECT_DIR/apps/c . | ||
- cd c | ||
- |- | ||
for f in *; do | ||
if [ -d "$f" ]; then | ||
# $f is a directory | ||
echo $f | ||
cd $f | ||
source source_list | ||
cd ../ | ||
fi | ||
done | ||
- cd ../ | ||
- cp -r $CI_PROJECT_DIR/apps/fortran . | ||
- cd fortran | ||
- |- | ||
for f in *; do | ||
if [ -d "$f" ]; then | ||
# $f is a directory | ||
echo $f | ||
cd $f | ||
source source_list | ||
cd ../ | ||
fi | ||
done | ||
- cd ../ | ||
- git add --all | ||
- git commit -a -m "$(date)" | ||
- git push origin | ||
only: | ||
refs: | ||
- merge_requests | ||
changes: | ||
- apps | ||
- ops_translator | ||
|
||
|
||
|
||
#Stage "test" | ||
test:GNU: | ||
stage: test | ||
|
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
Binary file not shown.
Oops, something went wrong.