C/++/# Programming an XBox One to do scientific computation?

  • Thread starter hilbert2
  • Start date

hilbert2

Science Advisor
Insights Author
Gold Member
1,186
350
Hi,

I've done quite a bit of scientific computation at work, mainly related to molecular QM and dynamics of hyperelastic bodies... I've used C++ to write the code for those applications. I also do some other simulations at home in my free time, just for fun.

My home laptop isn't exactly the kind of machine you can do computationally intensive things with, and I just read about the XBox One:s Dev Mode that allows anyone to write apps or games for XBox with C++. I then got a strange idea - how difficult would it be to code an XBox app that would use the multiple processors of the console to calculate something like integrating partial differential equations numerically and then send the output file with the results to your laptop via WiFi connection? Or maybe even a game console version of Folding@Home or similar. I got an XBox One last christmas and I've been using it to play games and watch Netflix, but I also immediately started wondering if I'd be able to make my own XBox apps.

I can even imagine an app that would let you "share" Xbox:s processor speed wirelessly to your PC to use it for any purpose.
 
This would be an interesting proposition but I would suggest you look into the copyright laws of Xbox, as they may prohibit this sharing of the Xbox's processor for other devices.
Just a thought... :smile:
 

hilbert2

Science Advisor
Insights Author
Gold Member
1,186
350
I'll have to check that, thanks for the suggestion.

The first program I'd try to make for Xbox would be something simple, like an app that receives a large matrix from PC via WiFi, diagonalizes it, and then sends the eigenvectors and eigenvalues back to the PC. A more difficult application would be rendering high-resolution videos with 3D fractals, something like in this YouTube video:
 

SteamKing

Staff Emeritus
Science Advisor
Homework Helper
12,794
1,662
If your current laptop doesn't have the power to do what you want, replace it with something that does. Futzing about with Xbox is just going to keep you from doing any work on the stuff you really want to do.

If you really want to get into parallel computing, some people put high-end graphics cards into desktops and use the manufacturer's developer tools for the card to access the graphics processors (GPUs) on the card. All this stuff is documented, the card manufacturer is aware of what's going on (that's how they get new apps running on their equipment), and you don't have to try to reverse-engineer or hack into a closed system - unless that's really what you want to do.

http://www.nvidia.com/object/what-is-gpu-computing.html
 

hilbert2

Science Advisor
Insights Author
Gold Member
1,186
350
^ This is not a serious project, I'm just doing it for fun. People who are in the Demoscene often produce things that work on unusual platforms, like this demo on a graphing calculator: . AFAIK the new Visual Studio 2015 has the feature of being able to compile C++ code to work on XBox1, and the developer license doesn't cost more than about $20.
 
You could also create a web app instead. That could then run on any device that has a browser. So you could do your scientific computations on your XBox, your TV, tablet, phone, etc. and only have to write one app. And of course all of those devices could cooperate and work on the same problem together.
 
Hi,

I've done quite a bit of scientific computation at work, mainly related to molecular QM and dynamics of hyperelastic bodies... I've used C++ to write the code for those applications. I also do some other simulations at home in my free time, just for fun.

My home laptop isn't exactly the kind of machine you can do computationally intensive things with, and I just read about the XBox One:s Dev Mode that allows anyone to write apps or games for XBox with C++. I then got a strange idea - how difficult would it be to code an XBox app that would use the multiple processors of the console to calculate something like integrating partial differential equations numerically and then send the output file with the results to your laptop via WiFi connection? Or maybe even a game console version of Folding@Home or similar. I got an XBox One last christmas and I've been using it to play games and watch Netflix, but I also immediately started wondering if I'd be able to make my own XBox apps.

I can even imagine an app that would let you "share" Xbox:s processor speed wirelessly to your PC to use it for any purpose.
People have made substantial progresses in converting PS3 into workhorse for scientific computing. But it's no longer doable in PS4 since Sony just locked up the dev mode.
 

Want to reply to this thread?

"Programming an XBox One to do scientific computation?" You must log in or register to reply here.

Physics Forums Values

We Value Quality
• Topics based on mainstream science
• Proper English grammar and spelling
We Value Civility
• Positive and compassionate attitudes
• Patience while debating
We Value Productivity
• Disciplined to remain on-topic
• Recognition of own weaknesses
• Solo and co-op problem solving
Top