System Experiments Laboratory  

Go Back   System Experiments Laboratory > SEL Mersenne prime research effort and other plans > Benchmarks

Reply
 
Thread Tools Display Modes
  #1  
Old 10-03-2019
selroc selroc is offline
Administrator
 
Join Date: Aug 2019
Location: ROME
Posts: 109
Default Procedure for gpuowl PRP benchmarks

This is the bash script I use for benchmarking GPUs:

Code:
#!/bin/bash

set -o xtrace

# For each gpu model run this script changing the first argument to reflect hardware name.
# Keep gpuowl.log
# For amdgpu-pro a change is required: -use NOASM
cd gpuowl-bench

# First GIMPS discovered prime
./gpuowl -prp 1398269 -iters 100000 -log 5000 -cpu $1 -results bench-1398269-$1.txt
# Last known prime
./gpuowl -prp 82589933 -iters 100000 -log 5000 -cpu $1 -results bench-82589933-$1.txt
# Largest SEL computed exponent
./gpuowl -prp 332252533 -iters 100000 -log 5000 -cpu $1 -results bench-332252533-$1.txt
It supposes that you have created a "gpuowl-bench" directory containing the gpuowl software, and you should provide the first command-line argument representing the GPU hardware name.
Reply With Quote
  #2  
Old 1 Week Ago
selroc selroc is offline
Administrator
 
Join Date: Aug 2019
Location: ROME
Posts: 109
Default Re: Procedure for gpuowl PRP benchmarks

I have worked on the procedure to make it extensive, now everything happens in a loop and the user can specify how many loops to run. There is also a procedure to prepare the benchmarks directory.

Explanation of the procedure: the user clones gpuowl into a default 'gpuowl' directory with the following command:
Code:
git clone https://github.com/preda/gpuowl
After the user runs the following procedure to prepare the benchmarks directory:
Code:
#!/bin/bash
set -o xtrace

cp -r gpuowl/ gpuowl-bench/
And then run this procedure with two parameters: GPU name, and number of loops:
Code:
#!/bin/bash

set -o xtrace

# For each gpu model run this script changing the first argument to reflect hardware name;
# The loop number is the second argument: 10 = 1 million iterations per exponent;

# Keep gpuowl.log
# For amdgpu-pro a change is required: -use NO_ASM
cd gpuowl-bench

COUNTER=1
while [  $COUNTER -lt $2 ]; do
echo GPU PRP benchmark loop $COUNTER is running now.
echo ***********************************************

# First GIMPS discovered prime
./gpuowl -prp 1398269 -iters 100000 -log 5000 -cpu $1 -results bench-1398269-$1-$COUNTER.txt
# Last known prime
./gpuowl -prp 82589933 -iters 100000 -log 5000 -cpu $1 -results bench-82589933-$1-$COUNTER.txt
# Largest SEL computed exponent
./gpuowl -prp 332412937 -iters 100000 -log 5000 -cpu $1 -results bench-332412937-$1-$COUNTER.txt

let COUNTER=COUNTER+1 
done
Attached Files
File Type: sh prep-bench.sh (55 Bytes, 0 views)
File Type: sh gpuowl-bench.sh (834 Bytes, 0 views)
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT +2. The time now is 06:50 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2019, vBulletin Solutions Inc.
(c) 2019 System Experiments Laboratory