mersenneforum.org  

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

Reply
 
Thread Tools
Old 2022-07-18, 07:45   #1
leonardyan96
 
leonardyan96's Avatar
 
"Cassessory"
May 2017
Northern China

2×33 Posts
Lightbulb Running GPU computing silently(in Windows)

I'm using the following steps to startup mfakto automatically in the background every time the computer starts, in a manner similar to prime95:
  1. Create a Visual Basic script (run_mfakto.vbs) and place it together with mfakto executable:
    Code:
    Set shell = Wscript.createobject("wscript.shell")
    a = shell.run ("cmd.exe /K [path to your mfakto executable] > [wherever you want]\mfakto.log",0)
  2. Use the Task Scheduler to run that script every time the computer boots.
I'm using an output redirector in order to monitor the computing progress when I want to do so.

Use the Task Manager if you want to kill mfakto.

Certainly MISFIT can also be used to talk to PrimeNet automatically.
leonardyan96 is offline   Reply With Quote
Old 2022-07-18, 10:00   #2
leonardyan96
 
leonardyan96's Avatar
 
"Cassessory"
May 2017
Northern China

2·33 Posts
Default

Update:
  1. Use Task Manager to check if mfakto is really working.
  2. Put your mfakto and script outside any folder with restricted access (e.g. C:\{Users,Windows,Program Files,Program Files (x86)}) to avoid permission-related problem. A dedicated mfakto folder under the root of any partition (use one other than C: if possible) would be a good choice.
  3. Replace the /K with /C in the script since we don't need the cmd window after mfakto being killed.
  4. If you are still not able to get mfakto automatically started, try letting Windows to start the task when you log in, setting a latency between logging in and starting the task, and/or using the highest permission to run this task. All of them can be done with the Task Scheduler.
leonardyan96 is offline   Reply With Quote
Old 2022-08-24, 20:28   #3
ixfd64
Bemusing Prompter
 
ixfd64's Avatar
 
"Danny"
Dec 2002
California

5·499 Posts
Default

An alternate way to run a console application "silently" is to use PowerShell:

Code:
Start-Process -WindowStyle hidden { <command> }
It's slightly simpler than making a script or batch file.

I also recommend not using Task Manager to kill mfakto because not allowing an application to exit gracefully can cause data loss. However, you can use some simple Python commands to send a SIGINT to a background process.

Code:
import os
import signal
os.kill(<mfakto PID>, signal.SIGINT)

Last fiddled with by ixfd64 on 2022-08-24 at 20:29
ixfd64 is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Running Prime95 on Windows 98 OS RetroGamer Software 32 2021-11-01 08:30
Windows Froze while Running Prime95 tuckerkao Information & Answers 3 2021-08-13 06:03
Windows running Linux Cuda ? tServo GPU Computing 31 2020-05-25 16:44
LATEST ECM SOFTWARE RUNNING on WINDOWS 7 enzocreti Computer Science & Computational Number Theory 1 2018-10-03 12:57
Running a Windows machine at the end of a wire fivemack Programming 2 2015-06-30 18:02

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


Tue Feb 7 12:43:42 UTC 2023 up 173 days, 10:12, 1 user, load averages: 2.01, 1.69, 1.47

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.

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