Skip to content
Snippets Groups Projects
Commit 87bc53c5 authored by Recolic Keghart's avatar Recolic Keghart
Browse files

parallel test script now supports gpu_factor tune

parent 4bedf6cb
No related branches found
No related tags found
No related merge requests found
......@@ -32,8 +32,11 @@ namespace gpma_impl {
dispatcher()
: mapKeyToSlot(hashSize, (size_t)(-1)) {}
#ifndef TEST_GPU_FACTOR
#define TEST_GPU_FACTOR 7
#endif
// void init(const CpuArrT &ptrs_cpu, const GpuArrT &ptrs_gpu) {}
static constexpr size_t gpu_factor = 7; // 1 GPU is equals to 7 CPU.
static constexpr size_t gpu_factor = TEST_GPU_FACTOR; // 1 GPU is equals to 7 CPU.
// Given KEY, returns the ID(offset from zero) of device, which is responsible to this KEY.
[[gnu::always_inline]] size_t select_device(const KEY_TYPE &k) {
......
#!/usr/bin/fish
set g 1
for f in (seq 0 20)
echo FACTOR=$f ===========================================
make EXTRA_FLAGS="-DTEST_GPU_FACTOR=$f -DTEST_DISABLE_BFS"
and time ./gpma_bfs_demo /tmp/100000.pokec.txt 0
end
exit 0
set g 0
for i in (seq 8)
echo CPUS=$i ===========================================
make EXTRA_FLAGS="-DTEST_CPUS=$i -DTEST_GPUS=0 -DTEST_DISABLE_BFS"
echo CPUS=$i GPUS=$g ===========================================
make EXTRA_FLAGS="-DTEST_CPUS=$i -DTEST_GPUS=$g -DTEST_DISABLE_BFS"
and time ./gpma_bfs_demo /tmp/999999999.pokec.txt 0
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment