mersenneforum.org  

Go Back   mersenneforum.org > Great Internet Mersenne Prime Search > Software

Reply
 
Thread Tools
Old 2020-01-12, 10:06   #1
Bulldozer
 
Jun 2019

3×7 Posts
Lightbulb Starting to port Prime95 to native UWP

I've just started a project to port prime95 to native UWP/WinRT and launch it to MS Store. Just downloaded the source code. Would anyone that have UWP developing experience give me some suggestions?
Here are the two ways that I planed:
1:Use the classic Win32 prime95 executable and use XAML to make a UWP shell to sync with it.
2:Use the code to develop a full-native UWP app.
Hope for your suggestions. Thanks!
Bulldozer is offline   Reply With Quote
Old 2020-01-12, 11:53   #2
M344587487
 
M344587487's Avatar
 
"Composite as Heck"
Oct 2017

2BB16 Posts
Default

I have my doubts as to how popular UWP is. From the looks of it the main potential is to be able to run on Xbox, however:
Quote:
Originally Posted by https://docs.microsoft.com/en-us/windows/uwp/xbox-apps/frequently-asked-questions
Xbox no longer supports x86 app development or x86 app submissions to the store.
Maybe this just means 32bit, maybe it means non-game related apps are barred from the xbox store. So for an end user to run the code they'd potentially have to download your app manually and sideload the app, probably having to swap to/from dev mode whenever they wanted to go between running the app and playing games. Possibly doable but cumbersome, bit of an unknown.

What use case do you see for a UWP port?
M344587487 is online now   Reply With Quote
Old 2020-01-12, 12:38   #3
Bulldozer
 
Jun 2019

258 Posts
Default

Quote:
Originally Posted by M344587487 View Post
What use case do you see for a UWP port?
For all devices to be able to join the project: Windows 10 S, Windows 10 Mobile, Xbox, Hololens and IoT devices.

Last fiddled with by Bulldozer on 2020-01-12 at 12:55
Bulldozer is offline   Reply With Quote
Old 2020-01-12, 16:23   #4
xx005fs
 
"Eric"
Jan 2018
USA

211 Posts
Default

Quote:
Originally Posted by M344587487 View Post
From the looks of it the main potential is to be able to run on Xbox
I don't think it will be worth it to run on those super low clock bulldozer CPUs on the game consoles even with prime95's great optimization. Instead posting a gpu app such as gpuowl would utilize the resources much better as the GCN gpus on xboxes have a lot of compute potentials and a great deal of memory bandwidth.
xx005fs is offline   Reply With Quote
Old 2020-01-12, 18:16   #5
M344587487
 
M344587487's Avatar
 
"Composite as Heck"
Oct 2017

3×233 Posts
Default

Quote:
Originally Posted by xx005fs View Post
I don't think it will be worth it to run on those super low clock bulldozer CPUs on the game consoles even with prime95's great optimization. Instead posting a gpu app such as gpuowl would utilize the resources much better as the GCN gpus on xboxes have a lot of compute potentials and a great deal of memory bandwidth.
I was thinking of the next gen releasing within a year, both Xbox and PS5 will be octa-core 7nm Ryzen zen2 with Navi GPUs (rumoured to be 36 CU's at 2GHz for PS5 like an OC'd RX 5700, 56 CU's at 1.7GHz for Xbox, the reality is more likely this CU count but clocked lower). gpuowl would be great but AMD have dropped the ball big time on OpenCL support for desktop Navi cards, hacking support into a locked down device sounds non-trivial at least.
M344587487 is online now   Reply With Quote
Old 2020-01-12, 18:24   #6
xilman
Bamboozled!
 
xilman's Avatar
 
"π’‰Ίπ’ŒŒπ’‡·π’†·π’€­"
May 2003
Down not across

19·547 Posts
Default

Quote:
Originally Posted by Bulldozer View Post
For all devices to be able to join the project: Windows 10 S, Windows 10 Mobile, Xbox, Hololens and IoT devices.
My, admittedly incompetent, take is as follows. There are at least two (IMAO) laudable consequences of your proposal;:

1) you learn how to do such a thing;
2) all contributions to the project, regardless of whether the computational effort is anywhere near the bleeding edge, is far better than no contributions at all.

I speak (type, actually) as someone who ran factoring code on PPro and a DECstation for something like 5 years after it became economically attractive.

Last fiddled with by xilman on 2020-01-12 at 18:27 Reason: Fix tags
xilman is online now   Reply With Quote
Old 2020-04-27, 03:29   #7
Bulldozer
 
Jun 2019

3×7 Posts
Red face Sorry, but I botched the UWP port of prime95

Sorry, but in UWP, assembly is not supported, so I gave up the work of porting prime95 to UWP.
Sorry for Xbox users.
Bulldozer is offline   Reply With Quote
Old 2020-04-27, 05:02   #8
ixfd64
Bemusing Prompter
 
ixfd64's Avatar
 
"Danny"
Dec 2002
California

11·211 Posts
Default

I thought x86 assembly was supported?

https://stackoverflow.com/questions/...e-in-a-uwp-app
ixfd64 is online now   Reply With Quote
Old 2020-04-27, 05:50   #9
Happy5214
 
Happy5214's Avatar
 
"Alexander"
Nov 2008
The Alamo City

25·13 Posts
Default

AFAICT UWP is supposed to run on non-x86 platforms (e.g. Windows Phone) without modification, thus precluding direct use of assembly.
Happy5214 is offline   Reply With Quote
Old 2020-05-02, 06:55   #10
Bulldozer
 
Jun 2019

3·7 Posts
Thumbs up Restarting prime95 UWP development

[M][/M]After flipping through the development guides of UWP, I found a way that a UWP app can launch an Win32 component without recompiling it. So I'm restarting the UWP prime95 development, and it's estimated to got it's way to the store in 10 days.

Last fiddled with by Bulldozer on 2020-05-02 at 06:55
Bulldozer is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
ntdll.dll error when starting Prime95 from a task scheduler action pokemonlover123 Software 27 2019-10-01 08:55
DS port Mini-Geek Hardware 2 2009-07-06 02:44
FreeBSD port - version 25.10 Prime95 Software 4 2009-05-27 19:25
Port 7000 issue IronBits No Prime Left Behind 35 2008-09-19 09:36
TCP Port Setup for Proxying? Exahertz PrimeNet 2 2005-03-20 14:35

All times are UTC. The time now is 16:37.

Wed Dec 2 16:37:40 UTC 2020 up 83 days, 13:48, 2 users, load averages: 1.56, 1.55, 1.58

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