mersenneforum.org  

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

Reply
 
Thread Tools
Old 2021-12-30, 16:04   #1
bluecat0531
 
Dec 2021

2·3 Posts
Default I have no idea of how to get this working

So ive tried to follow the available guides and tried searching through various forum posts for hours but to no avail. I have a 5950x that im happily running prime95 on but i want to set up my 3090 to do trial-factoring. I believe i have setup MISFIT/GPU72 to get and turn in my work but i cant get either mfaktc or mfaktx controller to get going. Pls help.
bluecat0531 is offline   Reply With Quote
Old 2021-12-30, 16:12   #2
Uncwilly
6809 > 6502
 
Uncwilly's Avatar
 
"""""""""""""""""""
Aug 2003
101×103 Posts

2B3C16 Posts
Default

Welcome to the forum.
Here is a pointer to a reference guide. https://www.mersenneforum.org/showthread.php?p=488518
Someone with more experience can help answer questions that you have.
Uncwilly is online now   Reply With Quote
Old 2021-12-31, 12:52   #3
kriesel
 
kriesel's Avatar
 
"TF79LL86GIMPS96gpu17"
Mar 2017
US midwest

24×3×163 Posts
Default

Quote:
Originally Posted by bluecat0531 View Post
I believe i have setup MISFIT/GPU72 to get and turn in my work but i cant get either mfaktc or mfaktx controller to get going. Pls help.
Log everything. Read the logs for clues. Divide and conquer; first get mfaktc working alone, without Misfit/gpu72. If you still can't figure it out, show us some logs. As things stand now, we don't know what issues you're having, because you've provided almost zero information. (Did mfaktc run at all? Did it pass the selftest? Is there anything in the worktodo file? Does the worktodo file even exist? Where did you install it? What error messages or console output do you get when you try to run mfaktc? Misfit? Etc, etc, etc.)
kriesel is online now   Reply With Quote
Old 2021-12-31, 14:37   #4
bluecat0531
 
Dec 2021

1102 Posts
Default

Quote:
Originally Posted by kriesel View Post
Log everything. Read the logs for clues. Divide and conquer; first get mfaktc working alone, without Misfit/gpu72. If you still can't figure it out, show us some logs. As things stand now, we don't know what issues you're having, because you've provided almost zero information. (Did mfaktc run at all? Did it pass the selftest? Is there anything in the worktodo file? Does the worktodo file even exist? Where did you install it? What error messages or console output do you get when you try to run mfaktc? Misfit? Etc, etc, etc.)
So i cant figure out how to run mfaktc at all. Ive tried using a cmdline but i dont know any commands at all and trying a batch file was no help either, my only other option was just double clicking the .exe file and all that happens is a cmdline appears for one second then disappears.
bluecat0531 is offline   Reply With Quote
Old 2021-12-31, 16:25   #5
chris2be8
 
chris2be8's Avatar
 
Sep 2009

25×7×11 Posts
Default

What operating system are you using?

Where have you installed mfaktc?

Open a terminal window, cd into wherever you have installed mfaktc and run if from there. (Under Linux or other UNIX variant type ./mfaktc and press Enter.) Then post *all* the output you get from it here.
chris2be8 is offline   Reply With Quote
Old 2021-12-31, 16:29   #6
Uncwilly
6809 > 6502
 
Uncwilly's Avatar
 
"""""""""""""""""""
Aug 2003
101×103 Posts

22·2,767 Posts
Default

Do you have a worktodo.txt established? And IIRC there is a need for a config file to be established before it will stay running. That part was confusing to me too. (I tried running it on a machine with an integrated GPU. But it used shared memory and lowered my desired Prime95 performance.)
Uncwilly is online now   Reply With Quote
Old 2021-12-31, 16:38   #7
kriesel
 
kriesel's Avatar
 
"TF79LL86GIMPS96gpu17"
Mar 2017
US midwest

24×3×163 Posts
Default

Until the OP posts some useful detail of what he's tried and what it produced, makes some effort to provide data about what's occurring, I suggest we all stop guessing in the dark and trying to help. Our effort should not exceed his.
kriesel is online now   Reply With Quote
Old 2021-12-31, 16:44   #8
Uncwilly
6809 > 6502
 
Uncwilly's Avatar
 
"""""""""""""""""""
Aug 2003
101×103 Posts

22×2,767 Posts
Default

My answer was commensurate with the OP's most recent post.
Uncwilly is online now   Reply With Quote
Old 2021-12-31, 17:42   #9
kriesel
 
kriesel's Avatar
 
"TF79LL86GIMPS96gpu17"
Mar 2017
US midwest

24×3×163 Posts
Default

Quote:
Originally Posted by Uncwilly View Post
the OP's most recent post.
I don't have an issue with your posts or Chris's. Look again at post 4. He quoted my entire post, that included several questions, answered none, and provided little information or specifics. We don't know if he has installed mfaktc in Program Files or system32 or somewhere sensible, has a worktodo file, has proper permissions on the install folder and mfaktc files, has a suitable CUDA computing compatible driver installed, what batch file he has attempted, what cmd line he has attempted, etc etc etc. The details which we would need to see to provide effective help are all being kept secret. I think we may have another "help me in spite of my refusing to provide any useful diagnostic data or answer any questions" troll.

Last fiddled with by kriesel on 2021-12-31 at 18:11
kriesel is online now   Reply With Quote
Old 2021-12-31, 20:46   #10
Viliam Furik
 
Viliam Furik's Avatar
 
"Viliam Furík"
Jul 2018
Martin, Slovakia

11001000102 Posts
Default

Quote:
Originally Posted by bluecat0531 View Post
So i cant figure out how to run mfaktc at all. Ive tried using a cmdline but i dont know any commands at all and trying a batch file was no help either, my only other option was just double clicking the .exe file and all that happens is a cmdline appears for one second then disappears.
You need to make a text file called worktodo.txt, where you will have the work for the mfaktc program. It is in the following format:

Code:
Factor=[exponent],[bitlevel-start],[bitlevel-end]

Example:
Factor=500000071,82,83
This example will search through all potential factors between 2^82 and 2^83. You can run it as a test, and it should take about 11 hours - in case you finish it, it will output a line to a text file "results.txt", which you should beforehand create as an empty file in case it doesn't do it automatically. There are of course other exponents to do TF (trial factoring) on, and those needed the most (above 120M exponents) take at most 10 minutes with your GPU, as they currently need TF from 2^74 to 2^75.

This should be all to make it work as to having the worktodo file.

It's however almost certain you don't have the necessary version of mfaktc, as I too didn't find a version supporting 3090 (I have 3080), but I didn't ask about it yet. You will also need a cudart64_(version number).dll - the number is most probably 104 or 105, as it mentions it needs mfaktc compiled for CUDA 10.4 or 10.5. You might also need to install the CUDA files necessary for running programs on GPU.


That's about it. If you have any questions, do ask.
Viliam Furik is offline   Reply With Quote
Old 2021-12-31, 23:31   #11
kriesel
 
kriesel's Avatar
 
"TF79LL86GIMPS96gpu17"
Mar 2017
US midwest

172208 Posts
Default

Quote:
Originally Posted by Viliam Furik View Post
You need to make a text file called worktodo.txt, where you will haveinsert the work for the mfaktc program. It is in the following format:

Code:
Factor=[exponent],[bitlevel-start],[bitlevel-end]

Example:
Factor=500000071,82,83
This example will search through all potential factors between 2^82 and 2^83. You can run it as a test, and it should take about 11 hours - in case you finish it, it will output a line to a text file "results.txt", which you should beforehand create as an empty file in case it doesn't do it automatically. There are of course other exponents to do TF (trial factoring) on, and those needed the most (above 120M exponents) take at most 10 minutes with your GPU, as they currently need TF from 2^74 to 2^75.
...

It's however almost certain you don't have the necessary version of mfaktc, as I too didn't find a version supporting 3090 (I have 3080), but I didn't ask about it yet. You will also need a cudart64_(version number).dll - the number is most probably 104 or 105, as it mentions it needs mfaktc compiled for CUDA 10.4 or 10.5. You might also need to install the CUDA files necessary for running programs on GPU.
In all my years of running numerous CUDA versions of mfaktc on multiple GPUs, I don't recall ever needing to create results.txt. Checking in the source code shows it uses an append option call of fopen to write results lines.
https://www.cplusplus.com/reference/cstdio/fopen/ states the file will be created if it does not exist. In module output.c:
Code:
void print_result_line(mystuff_t *mystuff, int factorsfound)
/* printf the final result line (STDOUT and resultfile) */
{
  char UID[110]; /* 50 (V5UserID) + 50 (ComputerID) + 8 + spare */
  char string[200];
  
  FILE *resultfile=NULL;
   
  
  if(mystuff->V5UserID[0] && mystuff->ComputerID[0])
    sprintf(UID, "UID: %s/%s, ", mystuff->V5UserID, mystuff->ComputerID);
  else
    UID[0]=0;
    
  if(mystuff->mode == MODE_NORMAL)
  {
    resultfile = fopen(mystuff->resultfile, "a");
    if(mystuff->print_timestamp == 1)print_timestamp(resultfile);
  }
  if(factorsfound)
  {
#ifndef MORE_CLASSES
    if((mystuff->mode == MODE_NORMAL) && (mystuff->stats.class_counter < 96))
#else
    if((mystuff->mode == MODE_NORMAL) && (mystuff->stats.class_counter < 960))
#endif
    {
      sprintf(string, "found %d factor%s for %s%u from 2^%2d to 2^%2d (partially tested) [mfaktc %s %s]", factorsfound, (factorsfound > 1) ? "s" : "", NAME_NUMBERS, mystuff->exponent, mystuff->bit_min, mystuff->bit_max_stage, MFAKTC_VERSION, mystuff->stats.kernelname);
    }
    else
    {
      sprintf(string, "found %d factor%s for %s%u from 2^%2d to 2^%2d [mfaktc %s %s]", factorsfound, (factorsfound > 1) ? "s" : "", NAME_NUMBERS, mystuff->exponent, mystuff->bit_min, mystuff->bit_max_stage, MFAKTC_VERSION, mystuff->stats.kernelname);
    }
  }
  else
  {
    sprintf(string, "no factor for %s%u from 2^%d to 2^%d [mfaktc %s %s]", NAME_NUMBERS, mystuff->exponent, mystuff->bit_min, mystuff->bit_max_stage, MFAKTC_VERSION, mystuff->stats.kernelname);
  }

  if(mystuff->mode != MODE_SELFTEST_SHORT)
  {
    printf("%s\n", string);
  }
  if(mystuff->mode == MODE_NORMAL)
  {
    fprintf(resultfile, "%s%s\n", UID, string);
    fclose(resultfile);
  }
}
RTX30xx are compute capability 8.6. That will require a compile with & dlls for CUDA 11.x. https://en.wikipedia.org/wiki/CUDA Download mirror at https://download.mersenne.ca/mfaktc/mfaktc-0.21 Go for the 2047M GpuSieveSize capable version to get full performance from these fast GPUs.
CUDA 10.x is required for RTX20xx & GTX16xx.
MacOS support has been dropped after CUDA 10.2.

Last fiddled with by kriesel on 2021-12-31 at 23:38
kriesel is online now   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Windows 10 in Ubuntu, good idea, bad idea, or...? jasong jasong 8 2017-04-07 00:23
CPU working 24/7 BaptisteTesson Information & Answers 5 2016-08-26 15:41
DST not working? Dubslow Forum Feedback 2 2012-03-19 06:53
How is working on 44M-45M ? hbock Lone Mersenne Hunters 0 2005-04-06 17:16
Working on 525 for P-1 delta_t Marin's Mersenne-aries 15 2004-09-13 15:27

All times are UTC. The time now is 15:17.


Fri Jul 7 15:17:09 UTC 2023 up 323 days, 12:45, 0 users, load averages: 1.28, 1.17, 1.14

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.

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