experiments #1

Merged
rubydragon merged 39 commits from experiments into main 2024-05-08 12:03:28 +02:00
2 changed files with 5 additions and 3 deletions
Showing only changes of commit fc31299d1e - Show all commits

View File

@ -4,6 +4,7 @@ using UUIDs
using BenchmarkTools
using DataFrames
using CSV
using Dates
results_filename = "bench_results_reduction_steps_gpu.csv"
@ -39,7 +40,7 @@ function bench(func, inputs)
gpu_compile_time = @elapsed func.(inputs[1:2])
gpu_time = @benchmark $func.($inputs)
return (
cpu_compile_time = 0.0,
gpu_compile_time = gpu_compile_time,
@ -59,7 +60,7 @@ processes = [("ke->kke", 50), ("ke->ke", 1), ("ke->kke", 1), ("ke->kkke", 1), ("
for (process_str, STEPSIZE) in processes
n = 0
opt_time_cum = 0
# preparation of graph
machine = Machine(
[

View File

@ -14,9 +14,10 @@ cd $HOME/repos/metagraph_optimization
module load singularity
module load git
module load cuda/12.1
printf "Current git commit hash: " > results/git_reduce_bench_gpu.txt
git rev-parse HEAD >> results/git_reduce_bench_gpu.txt
git status >> results/git_reduce_bench_gpu.txt
singularity exec experiments/CUDA_container.sif ./experiments/run_reduce_bench_gpu.sh
singularity exec --nv experiments/CUDA_container.sif ./experiments/run_reduce_bench_gpu.sh