mersenneforum.org  

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

Reply
 
Thread Tools
Old 2017-08-08, 02:01   #1
Rodrigo
 
Rodrigo's Avatar
 
Jun 2010
Pennsylvania

2×467 Posts
Default Running MFAKTC in WINE?

Has anybody tried running mfaktX in Linux via WINE? I've tried the appropriate TF program in straight Linux but it severely affects the display, whereas the Windows version doesn't do this, so I'm wondering if running the Windows version of, say, mfaktc through WINE might work better than the dedicated Linux version.

My first attempt to do this after installing WINE involved running mfaktc from the same Windows directory (it's a dual-boot machine). But I've run into two issues:

  1. For some reason, when running via WINE, mfaktc cannot read the mfaktc.ini file to get the settings, and gives me multiple warnings.
  2. And it gives me some business about needing to match the CUDA toolkit version that was used during compile.
I ran into the same issue as #2 when I tried to TF in Linux, but I'm not certain that the solution here would be the same as in that case.

Any ideas/hints will be appreciated.

Rodrigo

Last fiddled with by Rodrigo on 2017-08-08 at 02:41 Reason: clarity
Rodrigo is offline   Reply With Quote
Old 2017-08-08, 16:17   #2
Rodrigo
 
Rodrigo's Avatar
 
Jun 2010
Pennsylvania

2·467 Posts
Default

Brief update: I eliminated issue #1 above by launching the Windows cmd.exe in WINE, then running mfaktc-win-32.exe. But part #2 about matching the CUDA toolkit version remains, so suggestions as to what to do about that are welcome.

The OS is Kubuntu.
Rodrigo is offline   Reply With Quote
Old 2017-08-08, 16:38   #3
Mark Rose
 
Mark Rose's Avatar
 
"/X\(‘-‘)/X\"
Jan 2013

1011011100102 Posts
Default

Quote:
Originally Posted by Rodrigo View Post
The OS is Kubuntu.
Using a GTX 580, I have to stop mfaktc. Using a GTX 1070, I don't even notice it running.

Anyway, go to System Settings -> Notifications -> Notifications -> Screen Saver, and then you can configure scripts to run when the screen is locked and unlocked.
Mark Rose is offline   Reply With Quote
Old 2017-08-08, 20:01   #4
Rodrigo
 
Rodrigo's Avatar
 
Jun 2010
Pennsylvania

2·467 Posts
Default

Thanks. I have a question: The idea about the screensaver seems to have to do with running the Linux version of mfaktc. How does changing the screen locking options affect the choppiness of the screen when mfaktc is running? Not sure what one has to do with the other.

I'm still hoping for ideas on how to get mfaktc-win-32 (or -64) to run under WINE.

Rodrigo
Rodrigo is offline   Reply With Quote
Old 2017-08-08, 22:35   #5
Rodrigo
 
Rodrigo's Avatar
 
Jun 2010
Pennsylvania

2×467 Posts
Default

Another update: I copied the MFAKTC folder from the Windows partition over to the WINE pseudo-c: drive. This makes the path to mfaktc-win-32.exe shorter, but it doesn't help with the issue of the CUDA toolkit vs. runtime versions.

Running "mfaktc-win-32.exe -h" works, but anything that requires performing actual calculations (such as the self-test) fails to the above problem.

Rodrigo
Rodrigo is offline   Reply With Quote
Old 2017-08-08, 23:30   #6
wombatman
I moo ablest echo power!
 
wombatman's Avatar
 
May 2013

13·137 Posts
Default

Have you tried putting the necessary cuda* dlls in the mfaktc folder if they're not already there?
wombatman is offline   Reply With Quote
Old 2017-08-08, 23:42   #7
kladner
 
kladner's Avatar
 
"Kieren"
Jul 2011
In My Own Galaxy!

2×3×1,693 Posts
Default

Quote:
Originally Posted by wombatman View Post
Have you tried putting the necessary cuda* dlls in the mfaktc folder if they're not already there?
Excellent point! That is where I have them. No path problems!
kladner is offline   Reply With Quote
Old 2017-08-08, 23:57   #8
Mark Rose
 
Mark Rose's Avatar
 
"/X\(‘-‘)/X\"
Jan 2013

293010 Posts
Default

Quote:
Originally Posted by Rodrigo View Post
Thanks. I have a question: The idea about the screensaver seems to have to do with running the Linux version of mfaktc. How does changing the screen locking options affect the choppiness of the screen when mfaktc is running? Not sure what one has to do with the other.
Well the idea is to stop mfaktc when the screen is unlocked. So no interference when you're actually using your computer.

Quote:
I'm still hoping for ideas on how to get mfaktc-win-32 (or -64) to run under WINE.

Rodrigo
Can't help you there.
Mark Rose is offline   Reply With Quote
Old 2017-08-09, 02:53   #9
Rodrigo
 
Rodrigo's Avatar
 
Jun 2010
Pennsylvania

2·467 Posts
Default

Quote:
Originally Posted by wombatman View Post
Have you tried putting the necessary cuda* dlls in the mfaktc folder if they're not already there?
Yes, I had copied over the whole contents of the MFAKTC directory and it included the files cudart32_42_9.dll and cudart64_42_9.dll.

Any other files that need to be (copied over) there?

Rodrigo
Rodrigo is offline   Reply With Quote
Old 2017-08-09, 02:55   #10
Rodrigo
 
Rodrigo's Avatar
 
Jun 2010
Pennsylvania

2×467 Posts
Default

Quote:
Originally Posted by Mark Rose View Post
Well the idea is to stop mfaktc when the screen is unlocked. So no interference when you're actually using your computer.
Ah, I understand the purpose of that now. Thank you. If I can't get MFAKTC-WIN-xx to work under WINE, I'll investigate this approach.

Rodrigo
Rodrigo is offline   Reply With Quote
Old 2017-08-09, 12:00   #11
wombatman
I moo ablest echo power!
 
wombatman's Avatar
 
May 2013

13·137 Posts
Default

Quote:
Originally Posted by Rodrigo View Post
Yes, I had copied over the whole contents of the MFAKTC directory and it included the files cudart32_42_9.dll and cudart64_42_9.dll.

Any other files that need to be (copied over) there?

Rodrigo
Sorry, that was the only brilliant idea I had

Last fiddled with by wombatman on 2017-08-09 at 12:00
wombatman is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
"CUDA runtime version 0.0" when running mfaktc.exe froderik GPU Computing 4 2016-10-30 15:29
mfaktO and mfaktC running on same machine. Proof! swl551 GPU Computing 2 2012-08-19 13:37
GUI for Mprime/running Prime95 under WINE? ixfd64 Software 5 2011-02-16 15:21
64-bit lnx vs win client, Prime95.exe under Wine? xorbe Software 13 2009-03-18 07:22
errors running DOS program under Wine. Problem? jasong Information & Answers 4 2007-10-06 21:08

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


Sun Aug 1 17:55:03 UTC 2021 up 9 days, 12:24, 0 users, load averages: 2.62, 2.47, 2.11

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.