forked from teknohog/primetools
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathllloop.sh
More file actions
executable file
·40 lines (29 loc) · 963 Bytes
/
Copy pathllloop.sh
File metadata and controls
executable file
·40 lines (29 loc) · 963 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/bin/bash
# by teknohog
# Example script for automatic work assignment for clLucas and CUDALucas
# https://www.rieselprime.de/ziki/ClLucas
# https://www.mersenneforum.org/cllucas/
# https://www.rieselprime.de/ziki/CUDALucas
# https://sourceforge.net/projects/cudalucas/
BASEOPTS="-u teknohog -p 11235"
WORKOPTS="-n 1 -T 100"
#LLCMD="clLucas -d 0 -aggressive -threads 128" # 1.02
#LLCMD="clLucas -d 0 -polite 0 -threads 128 -sixstepfft" # 1.04
#BASEDIR=~/distr.projects/clLucas.1.04/bin/x86_64/Release
#export LD_LIBRARY_PATH=~/sources/clFFT/src/library/
LLCMD="CUDALucas"
BASEDIR=~/sources/cudalucas
# GPU workers sometimes hog the CPU needlessly. This is a simple
# solution, though it would be better to limit the worker process only
# within llloop.py.
NICE=5
while getopts f opt; do
case $opt in
f)
# Finish current work and exit
WORKOPTS="-n 0"
;;
esac
done
cd $BASEDIR
nice -n$NICE llloop.py $BASEOPTS $WORKOPTS -c "$LLCMD"