mersenneforum.org  

Go Back   mersenneforum.org > Great Internet Mersenne Prime Search > Hardware > GPU Computing

Reply
 
Thread Tools
Old 2022-11-03, 11:23   #1
MatWur-S530113
 
MatWur-S530113's Avatar
 
Apr 2007
Spessart/Germany

2×83 Posts
Default Restarting GPU TF

hiho,
I try to restart my TFing on my Geforce 1070 Ti, but I get an error when starting it:
running a simple Selftest
ERROR: CudaGetLastError () returned 8: Invalid Device function


I tried it with mfactc-0.20 and mfactc-0.21, always the same error (and the Wagstaff-version and the LessClasses version...)



2 years ago I used another GPU (Geforce 970) and now I have 2 monitors, one of them is running with the internal GPU of the Processor (oldish Intel 4670K). Maybe this forces the error.
Any help about this? Tia
MatWur-S530113 is offline   Reply With Quote
Old 2022-11-03, 11:32   #2
kriesel
 
kriesel's Avatar
 
"TF79LL86GIMPS96gpu17"
Mar 2017
US midwest

7,823 Posts
Default

Review the setup steps at https://www.mersenneforum.org/showpo...18&postcount=1.
kriesel is online now   Reply With Quote
Old 2022-11-03, 16:27   #3
MatWur-S530113
 
MatWur-S530113's Avatar
 
Apr 2007
Spessart/Germany

2×83 Posts
Default

Thanks, but no positive result here.
I tried different versions of mfactc (0.19, 0.20, 0.21), I installed Cuda from the Nvidia-page, I tried different Cuda versions, but always the same. With version 11.2 of Cuda I got a different error:


---------------------copy of selftest file



mfaktc v0.21 (64bit built)

Compiletime options
THREADS_PER_BLOCK 256
SIEVE_SIZE_LIMIT 32kiB
SIEVE_SIZE 193154bits
SIEVE_SPLIT 250
MORE_CLASSES enabled

Runtime options
SievePrimes 25000
SievePrimesAdjust 1
SievePrimesMin 5000
SievePrimesMax 100000
NumStreams 3
CPUStreams 3
GridSize 3
GPU Sieving enabled
GPUSievePrimes 82486
GPUSieveSize 128Mi bits
GPUSieveProcessSize 8Ki bits
Checkpoints enabled
CheckpointDelay 30s
WorkFileAddDelay 300s
Stages enabled
StopAfterFactor class
PrintMode compact
V5UserID ****
ComputerID OZI-GPU1070Ti
AllowSleep no
TimeStampInResults no

CUDA version info
binary compiled for CUDA 11.20
CUDA runtime version 11.20
CUDA driver version 12.0

CUDA device info
name NVIDIA GeForce GTX 1070 Ti
compute capability 6.1
max threads per block 1024
max shared memory per MP 98304 byte
number of multiprocessors 19
clock rate (CUDA cores) 1683MHz
memory clock rate: 4004MHz
memory bus width: 256 bit

Automatic parameters
threads per grid 622592
GPUSievePrimes (adjusted) 82486
GPUsieve minimum exponent 1055144

########## testcase 1/2867 ##########
Starting trial factoring M50804297 from 2^67 to 2^68 (0.59 GHz-days)
Using GPU kernel "75bit_mul32_gs"
Date Time | class Pct | time ETA | GHz-d/day Sieve Wait
Nov 03 17:15 | 3387 0.1% | 0.001 n.a. | n.a. 82485 n.a.%ERROR: cudaGetLastError() returned 209: no kernel image is available for execution on the device


-------------------------------end copy



At least the 1070 Ti was recognized correctly.
All other versions had the error 8 returned as said in the OP
MatWur-S530113 is offline   Reply With Quote
Old 2022-11-03, 17:00   #4
kriesel
 
kriesel's Avatar
 
"TF79LL86GIMPS96gpu17"
Mar 2017
US midwest

7,823 Posts
Default

Quote:
Originally Posted by MatWur-S530113 View Post
Thanks, but no positive result here.
...

CUDA version info
binary compiled for CUDA 11.20
CUDA runtime version 11.20
CUDA driver version 12.0

CUDA device info
name NVIDIA GeForce GTX 1070 Ti
compute capability 6.1
max threads per block 1024
max shared memory per MP 98304 byte
number of multiprocessors 19
clock rate (CUDA cores) 1683MHz
memory clock rate: 4004MHz
memory bus width: 256 bit

Automatic parameters
threads per grid 622592
GPUSievePrimes (adjusted) 82486
GPUsieve minimum exponent 1055144

########## testcase 1/2867 ##########
Starting trial factoring M50804297 from 2^67 to 2^68 (0.59 GHz-days)
Using GPU kernel "75bit_mul32_gs"
Date Time | class Pct | time ETA | GHz-d/day Sieve Wait
Nov 03 17:15 | 3387 0.1% | 0.001 n.a. | n.a. 82485 n.a.%ERROR: cudaGetLastError() returned 209: no kernel image is available for execution on the device


-------------------------------end copy



At least the 1070 Ti was recognized correctly.
All other versions had the error 8 returned as said in the OP
GTX10xx will happily run CUDA 8 executables, with compatible dlls and drivers, and do not support CUDA 10.x or CUDA 11.x compiled without downlevel support. Try this exe, assuming you're on Windows. (You can conduct such experiments in separate folders so as not to destroy the setups you tried previously.)
See also re CUDA & driver compatibility. That can be a significant consideration in selecting a suitable version of mfaktc or whatever for a specific GPU model.
While it's possible to compile CUDA apps to support multiple Compute capability levels & so support older GPU models, and level-independent PTX, there's no guarantee that the CUDA 9.x, 10.x or 11.x Mfaktc.exe builds available from download sites were built to either include PTX or CC 6.1 support.

Last fiddled with by kriesel on 2022-11-03 at 17:04
kriesel is online now   Reply With Quote
Old 2022-11-03, 17:42   #5
MatWur-S530113
 
MatWur-S530113's Avatar
 
Apr 2007
Spessart/Germany

A616 Posts
Default

ah, I got it to work with mfaktc-0.21.win.cuda80.zip (the last version I tried out...) , no more errors, both selftests passed.
Thanks


Edit: what are the differences betwenn mfaktc-win-64.exe, mfaktc-less-cuda80-64.exe and mfaktc-more-cuda80-64.exe ? Only the number of outputs on the screen?


Ah, ok thanks again, I read the answer.

Last fiddled with by MatWur-S530113 on 2022-11-03 at 18:04
MatWur-S530113 is offline   Reply With Quote
Old 2022-11-03, 17:50   #6
kriesel
 
kriesel's Avatar
 
"TF79LL86GIMPS96gpu17"
Mar 2017
US midwest

7,823 Posts
Default

You could get more performance by tuning with a -2047 flavor (2047M max GPUSieveSize instead of 128Mbit). See https://www.mersenneforum.org/showpo...99&postcount=8
kriesel is online now   Reply With Quote
Old 2022-11-03, 18:13   #7
MatWur-S530113
 
MatWur-S530113's Avatar
 
Apr 2007
Spessart/Germany

2×83 Posts
Default

tested all 3 versions (for short time):


mfaktc-win-64.exe -> ~808GHzdays/day
mfaktc-less-cuda80-64.exe -> ~817 GHzdays/day
mfaktc-more-cuda80-64.exe -> ~827 GHzdays/day


Using the 'more'-version, thanks all, done
MatWur-S530113 is offline   Reply With Quote
Old 2022-11-03, 18:48   #8
kriesel
 
kriesel's Avatar
 
"TF79LL86GIMPS96gpu17"
Mar 2017
US midwest

1E8F16 Posts
Default

Why not the recommended https://download.mersenne.ca/mfaktc/....21.win_cuda80-2047.zip? That's where the full performance is. (-more-classes for normal work, -less-classes for very low bit levels that would have very short class times in -more-classes, hence many console outputs and checkpoint saves per second, or on very high exponents. And if experiencing short class times, use SSD for faster save of checkpoints and logging of console output by redirection or tee.)
Proper tuning takes time, after settling on one executable; stop program, change ini file settings, save, restart program, run at least 30 classes, tabulate performance of last 20, repeat, one ini parameter at a time.
There's also the option of subsequently tuning power level for efficiency (throughput rate per watt used).
And of running multiple instances that may squeeze out a little more performance, after other tuning is finished.

Last fiddled with by kriesel on 2022-11-03 at 18:51
kriesel is online now   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Stopping and restarting factmsieve ThomRuley Msieve 15 2022-01-03 17:46
Problem after restarting prime95 Bulldozer Software 3 2019-07-30 19:40
Trouble restarting large job fivemack Msieve 4 2018-01-04 01:13
assignment restarting prob isaac1204 Information & Answers 2 2017-07-20 17:26
Stop p95 or llr before restarting? Joshua2 Software 6 2005-05-16 16:36

All times are UTC. The time now is 14:20.


Fri Jul 7 14:20:24 UTC 2023 up 323 days, 11:48, 0 users, load averages: 1.04, 1.20, 1.23

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.

≠ ± ∓ ÷ × · − √ ‰ ⊗ ⊕ ⊖ ⊘ ⊙ ≤ ≥ ≦ ≧ ≨ ≩ ≺ ≻ ≼ ≽ ⊏ ⊐ ⊑ ⊒ ² ³ °
∠ ∟ ° ≅ ~ ‖ ⟂ ⫛
≡ ≜ ≈ ∝ ∞ ≪ ≫ ⌊⌋ ⌈⌉ ∘ ∏ ∐ ∑ ∧ ∨ ∩ ∪ ⨀ ⊕ ⊗ 𝖕 𝖖 𝖗 ⊲ ⊳
∅ ∖ ∁ ↦ ↣ ∩ ∪ ⊆ ⊂ ⊄ ⊊ ⊇ ⊃ ⊅ ⊋ ⊖ ∈ ∉ ∋ ∌ ℕ ℤ ℚ ℝ ℂ ℵ ℶ ℷ ℸ 𝓟
¬ ∨ ∧ ⊕ → ← ⇒ ⇐ ⇔ ∀ ∃ ∄ ∴ ∵ ⊤ ⊥ ⊢ ⊨ ⫤ ⊣ … ⋯ ⋮ ⋰ ⋱
∫ ∬ ∭ ∮ ∯ ∰ ∇ ∆ δ ∂ ℱ ℒ ℓ
𝛢𝛼 𝛣𝛽 𝛤𝛾 𝛥𝛿 𝛦𝜀𝜖 𝛧𝜁 𝛨𝜂 𝛩𝜃𝜗 𝛪𝜄 𝛫𝜅 𝛬𝜆 𝛭𝜇 𝛮𝜈 𝛯𝜉 𝛰𝜊 𝛱𝜋 𝛲𝜌 𝛴𝜎𝜍 𝛵𝜏 𝛶𝜐 𝛷𝜙𝜑 𝛸𝜒 𝛹𝜓 𝛺𝜔