mersenneforum.org  

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

Reply
 
Thread Tools
Old 2020-11-01, 10:32   #3433
James Heinrich
 
James Heinrich's Avatar
 
"James Heinrich"
May 2004
ex-Northern Ontario

2·1,663 Posts
Default

Quote:
Originally Posted by Icecold View Post
Will do, I should be able to send over cudalucas and gpuowl in the next couple days, and mfaktc as soon as I can get that working... this is a fresh install of Windows 10.
Thank you kindly. If you need a CUDA 8.6 build of mfaktc to get it working, and you do get one built, please share it (attached here is fine) and I'll put it up on download.mersenne.ca
James Heinrich is offline   Reply With Quote
Old 2020-11-01, 15:40   #3434
Icecold
 
Oct 2020

22 Posts
Default

Quote:
Originally Posted by axn View Post
Yes, that's what I meant. Did that solve the "no kernel image" issue? I'm assuming you're able to use it as anonymous platform under BOINC
It did not, unfortunately. I had done that prior(or around the same time) to rebirther posting here about the issue. It was giving me an error compiling until I added 86 in there (I should have screenshotted the error, but I didn't and don't remember what it was)
Icecold is offline   Reply With Quote
Old 2020-11-07, 08:01   #3435
rebirther
 
rebirther's Avatar
 
Sep 2011
Germany

AD316 Posts
Default

Is someone able to compile a cuda11 version for windows and linux?
rebirther is offline   Reply With Quote
Old 2020-12-04, 14:42   #3436
aheeffer
 
Aug 2020

458 Posts
Default

I just received a RTX 3060 ti card (Gigabyte Aorus) but can't get it to run mfaktc


CUDA version info
binary compiled for CUDA 10.0
CUDA runtime version 10.0
CUDA driver version 11.10

CUDA device info
name GeForce RTX 3060 Ti
compute capability 8.6
max threads per block 1024
max shared memory per MP 102400 byte
number of multiprocessors 38
clock rate (CUDA cores) 1800MHz
memory clock rate: 7001MHz
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 Pct ETA | Exponent Bits | GHz-d/day Sieve Wait
Dec 04 15:37 0.1 n.a. | 50804297 67-68 | n.a. 82485 n.a.%
ERROR: cudaGetLastError() returned 48: no kernel image is available for execution on the device


What is wrong? Do I need a version compiled for CUDA 11? Who has one for Windows?

Last fiddled with by aheeffer on 2020-12-04 at 14:55
aheeffer is offline   Reply With Quote
Old 2020-12-05, 03:37   #3437
clowns789
 
clowns789's Avatar
 
Jun 2003
The Computer

23×72 Posts
Default

Quote:
Originally Posted by aheeffer View Post
What is wrong? Do I need a version compiled for CUDA 11? Who has one for Windows?
That would be nice. I also have a 3060 Ti (MSI) but the window closes as soon as I open it. It worked fine on a GTX 1080.
clowns789 is offline   Reply With Quote
Old 2020-12-06, 14:04   #3438
aheeffer
 
Aug 2020

37 Posts
Default

It took me a while, but I succeeded in building a 64-bit Windows 10 executable using the NVIDIA GPU Computing Toolkit v.11.1, Visual Studio 2019 Community and Msys64 for mfaktc adding the new 8.0 and 8.6 architecture (which my RTX 3060 ti uses).

Now, I get a CUDA runtime error.

Code:
CUDA version info
  binary compiled for CUDA  11.10
  CUDA runtime version      11.10
  CUDA driver version       11.10

CUDA device info
  name                      GeForce RTX 3060 Ti
  compute capability        8.6
  max threads per block     1024
  max shared memory per MP  102400 byte
  number of multiprocessors 38
  clock rate (CUDA cores)   1800MHz
  memory clock rate:        7001MHz
  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
Dec 06 14:53 | 3387   0.1% |  0.001    n.a. |      n.a.    82485    n.a.%
ERROR: cudaGetLastError() returned 98: invalid device function
Any advice?

BTW, I also get the same error running on a RTX 2060 card.

Last fiddled with by aheeffer on 2020-12-06 at 14:07
aheeffer is offline   Reply With Quote
Old 2020-12-06, 15:14   #3439
pinhodecarlos
 
pinhodecarlos's Avatar
 
"Carlos Pinho"
Oct 2011
Milton Keynes, UK

33·181 Posts
Default

Go here http://srbase.my-firewall.org/sr5/index.php, if I’m not mistaken they have a working version.
pinhodecarlos is online now   Reply With Quote
Old 2020-12-06, 15:50   #3440
rebirther
 
rebirther's Avatar
 
Sep 2011
Germany

17·163 Posts
Default

Quote:
Originally Posted by pinhodecarlos View Post
Go here http://srbase.my-firewall.org/sr5/index.php, if I’m not mistaken they have a working version.

nope, one has compiled a win version and run into the same error while linux is ok.
rebirther is offline   Reply With Quote
Old 2020-12-06, 16:24   #3441
axn
 
axn's Avatar
 
Jun 2003

3×11×149 Posts
Default

Ok, so a bit of a long shot.

In mfaktc.c, under int tf(mystuff_t *mystuff, int class_hint, unsigned long long int k_hint, int kernel)

there is a section...

Code:
        if(cudaError != cudaSuccess)
        {
          printf("ERROR: cudaGetLastError() returned %d: %s\n", cudaError, cudaGetErrorString(cudaError));
          return RET_CUDA_ERROR; /* bail out, we might have a serios problem (detected by cudaGetLastError())... */
        }
modify that to...
Code:
        if(cudaError != cudaSuccess && cudaError != cudaErrorInvalidDeviceFunction)
        {
          printf("ERROR: cudaGetLastError() returned %d: %s\n", cudaError, cudaGetErrorString(cudaError));
          return RET_CUDA_ERROR; /* bail out, we might have a serios problem (detected by cudaGetLastError())... */
        }
to ignore that specific error. See if that allows you to get past the error and pass the self tests (-st and -st2). If all checks out, try a few tests with knows factors. If all of that works out, keep going with it.

I'm assuming that that particular error is benign (considering linux works).
axn is offline   Reply With Quote
Old 2020-12-06, 22:59   #3442
Dylan14
 
Dylan14's Avatar
 
"Dylan"
Mar 2017

3×191 Posts
Default

Two things:

1. I have created a PKGBUILD for mfaktc for use on Arch Linux. You can find it here: https://aur.archlinux.org/packages/mfaktc/

2. Attached is a build of mfaktc compiled on cuda 11.1 on Linux, with a max GPU sieve size of 2047. It supports all CC's that is supported by this version of cuda:
3.5 (some Kepler cards, like the K80)
5.x (Maxwell)
6.x (Pascal)
7.0 (the Titan V and the Tesla V100)
7.5 (Volta)
8.0 (the Tesla A100)
8.6 (Ampere)
Attached Files
File Type: 7z mfaktc.7z (232.2 KB, 49 views)
Dylan14 is online now   Reply With Quote
Old 2020-12-07, 03:13   #3443
aheeffer
 
Aug 2020

37 Posts
Default

Quote:
Originally Posted by axn View Post
Ok, so a bit of a long shot.

ignore that specific error. See if that allows you to get past the error and pass the self tests (-st and -st2). If all checks out, try a few tests with knows factors. If all of that works out, keep going with it.

I'm assuming that that particular error is benign (considering linux works).
Well, I gave it a try....

Ignoring the CudaError, the program goes through all the test TF's and they all fail.
aheeffer is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
mfakto: an OpenCL program for Mersenne prefactoring Bdot GPU Computing 1668 2020-12-22 15:38
The P-1 factoring CUDA program firejuggler GPU Computing 753 2020-12-12 18:07
gr-mfaktc: a CUDA program for generalized repunits prefactoring MrRepunit GPU Computing 32 2020-11-11 19:56
mfaktc 0.21 - CUDA runtime wrong keisentraut Software 2 2020-08-18 07:03
World's second-dumbest CUDA program fivemack Programming 112 2015-02-12 22:51

All times are UTC. The time now is 12:41.

Sun Apr 18 12:41:07 UTC 2021 up 10 days, 7:21, 0 users, load averages: 2.15, 1.69, 1.57

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, 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.