-
Notifications
You must be signed in to change notification settings - Fork 0
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
88 changed files
with
31,464 additions
and
115 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
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 |
---|---|---|
@@ -1,7 +1,11 @@ | ||
# nvc++ -w -fast -Mnouniform -Mfprelaxed -stdpar=gpu -std=c++11 -DUSE_MPI=0 stdPar.cpp -o stdPar | ||
set(CMAKE_CXX_COMPILER "nvc++") | ||
set(CMAKE_C_COMPILER "nvc") | ||
set(CMAKE_CXX_FLAGS "-w -fast -Mnouniform -Mfprelaxed -stdpar=gpu -std=c++11 -DUSE_MPI=0") | ||
|
||
add_executable(nvcPar nvcPar.cpp) | ||
target_include_directories(nvcPar PRIVATE "${CMAKE_CURRENT_LIST_DIR}/commons") | ||
# set(CMAKE_CXX_FLAGS "-w -fast -Mnouniform -Mfprelaxed -stdpar=multicore -std=c++11 -DUSE_MPI=0") | ||
# add_executable(nvcParMulticore nvcPar.cpp) | ||
# target_include_directories(nvcParMulticore PRIVATE "${CMAKE_CURRENT_LIST_DIR}/commons") | ||
|
||
set(CMAKE_CXX_FLAGS "-w -fast -Mnouniform -Mfprelaxed -stdpar=gpu -std=c++11 -DUSE_MPI=0") | ||
add_executable(nvcParGpu nvcPar.cpp) | ||
target_include_directories(nvcParGpu PRIVATE "${CMAKE_CURRENT_LIST_DIR}/commons") |
Binary file not shown.
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.
Binary file not shown.
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 |
---|---|---|
@@ -1,21 +1,65 @@ | ||
module purge | ||
source /opt/cray/pe/cpe/22.11/restore_system_defaults.sh | ||
|
||
module load gcc/11.2.0 | ||
|
||
mkdir -p build && cd build | ||
make clean | ||
cmake -DCMAKE_BUILD_TYPE=Release .. | ||
make | ||
|
||
cd /global/homes/w/wwei/src/parSTL/build | ||
./hpx/hpxPar --hpx:threads=64 | ||
OMP_NUM_THREADS=64 OMP_PLACES=threads OMP_PROC_BIND=close ./kokkos/kokkosPar | ||
./std/stdPar | ||
./gnu/gnuPar | ||
|
||
module purge | ||
source /opt/cray/pe/cpe/22.11/restore_system_defaults.sh | ||
module load nvhpc/22.7 | ||
./nvc/nvcPar | ||
#!/bin/bash | ||
|
||
#SBATCH -A nstaff | ||
|
||
#SBATCH -C gpu | ||
#SBATCH -t 30:00 | ||
#SBATCH -q regular | ||
#SBATCH -N 1 | ||
#SBATCH --ntasks-per-node=1 | ||
|
||
#SBATCH -o stdpar3.out | ||
#SBATCH -e stdpar3.err | ||
|
||
# for SIZE in 100000 1000000 10000000 100000000 | ||
for SIZE in 100000000 | ||
do | ||
# echo "running stdParTbb_gcc with $SIZE workload" | ||
# ./stdParTbb_gcc $SIZE | ||
|
||
# echo "running stdParTbb_clang with $SIZE workload" | ||
# ./stdParTbb_clang $SIZE | ||
|
||
# echo "running nvcPar_cpu with $SIZE workload" | ||
# ./nvcPar_cpu $SIZE | ||
|
||
# echo "running nvcPar_gpu with $SIZE workload" | ||
# ./nvcPar_gpu $SIZE | ||
|
||
for NUM_THREADS in 1 2 4 8 16 32 64 128 | ||
# for NUM_THREADS in 128 | ||
do | ||
# echo "running hpxPar_gcc with $SIZE workload and $NUM_THREADS" | ||
# ./hpxPar_gcc $SIZE --hpx:threads=$NUM_THREADS | ||
|
||
# echo "running hpxPar_clang with $SIZE workload and $NUM_THREADS" | ||
# ./hpxPar_clang $SIZE --hpx:threads=$NUM_THREADS | ||
|
||
# echo "running gnuPar_gcc with $SIZE workload and $NUM_THREADS" | ||
# OMP_NUM_THREADS=$NUM_THREADS OMP_PROC_BIND=spread OMP_PLACES=threads ./gnuPar_gcc $SIZE | ||
|
||
# echo "running gnuPar_clang with $SIZE workload and $NUM_THREADS" | ||
# OMP_NUM_THREADS=$NUM_THREADS OMP_PROC_BIND=spread OMP_PLACES=threads ./gnuPar_clang $SIZE | ||
|
||
# echo "running kokkosPar_openmp_gcc with $SIZE workload and $NUM_THREADS" | ||
# OMP_PROC_BIND=spread OMP_PLACES=threads ./kokkosPar_openmp_gcc $SIZE --kokkos-num-threads=$NUM_THREADS | ||
|
||
# echo "running kokkosPar_threads_gcc with $SIZE workload and $NUM_THREADS" | ||
# ./kokkosPar_threads_gcc $SIZE --kokkos-num-threads=$NUM_THREADS | ||
|
||
# echo "running kokkosPar_openmp_clang with $SIZE workload and $NUM_THREADS" | ||
# OMP_PROC_BIND=spread OMP_PLACES=threads ./kokkosPar_openmp_clang $SIZE --kokkos-num-threads=$NUM_THREADS | ||
|
||
# echo "running kokkosPar_threads_clang with $SIZE workload and $NUM_THREADS" | ||
# ./kokkosPar_threads_clang $SIZE --kokkos-num-threads=$NUM_THREADS | ||
|
||
echo "running taskflowPar_gcc with $SIZE workload and $NUM_THREADS" | ||
./taskflowPar_gcc $SIZE $NUM_THREADS | ||
|
||
echo "running taskflowPar_clang with $SIZE workload and $NUM_THREADS" | ||
./taskflowPar_clang $SIZE $NUM_THREADS | ||
done | ||
|
||
done | ||
|
||
|
This file was deleted.
Oops, something went wrong.
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,4 @@ | ||
find_package(TBB REQUIRED tbb) | ||
add_executable(stdParTbb stdParTbb.cpp) | ||
target_link_libraries(stdParTbb PUBLIC TBB::tbb) | ||
target_include_directories(stdParTbb PRIVATE "${CMAKE_SOURCE_DIR}/commons") |
Oops, something went wrong.