GPU trajectories with standard FAHViewer
Moderator: Site Moderators
-
- Posts: 1576
- Joined: Tue May 28, 2013 12:14 pm
- Location: Tokyo
GPU trajectories with standard FAHViewer
For those interested I modified a script I wrote last year for my iPad app to visualize GPU trajectories. Since I went a different route for the iPad I wanted to open up the script and enable it for use with the standard viewer.
https://github.com/ChristianVirtual/FAH ... Trajectory
An early version, working with Linux. If one with a Windows box want to help testing/changing: help is always welcomed.
https://github.com/ChristianVirtual/FAH ... Trajectory
An early version, working with Linux. If one with a Windows box want to help testing/changing: help is always welcomed.
Please contribute your logs to http://ppd.fahmm.net
-
- Posts: 533
- Joined: Tue May 27, 2008 11:56 pm
- Hardware configuration: Parts:
Asus H370 Mining Master motherboard (X2)
Patriot Viper DDR4 memory 16gb stick (X4)
Nvidia GeForce GTX 1080 gpu (X16)
Intel Core i7 8700 cpu (X2)
Silverstone 1000 watt psu (X4)
Veddha 8 gpu miner case (X2)
Thermaltake hsf (X2)
Ubit riser card (X16) - Location: ames, iowa
Re: GPU trajectories with standard FAHViewer
thanks for this little christmas gift ChristianVirtual!
just set it up on a second machine and am getting the following:
ERROR:Exception: Size of positions 5533 does not match topology 5532
what am i doing wrong?
just set it up on a second machine and am getting the following:
ERROR:Exception: Size of positions 5533 does not match topology 5532
what am i doing wrong?
-
- Posts: 1576
- Joined: Tue May 28, 2013 12:14 pm
- Location: Tokyo
Re: GPU trajectories with standard FAHViewer
My pleasure ! Glad you like it.
I guess you are doing nothing wrong ... Can you send me three files from the working folder:
/var/lib/fahclient/work/<wu>/01/viewerTop.json for the atoms
/var/lib/fahclient/work/<wu>/01/viewerFrame1.json for the coordinates
/var/lib/fahclient/work/<wu>/01/system.xml for the bonds
Please grep, if there is no passkey from you in, just to make sure; if you have Dropbox or google drive please send me the link (also PM ok). If you don't have let me know; I can try to set one up.
I guess you are doing nothing wrong ... Can you send me three files from the working folder:
/var/lib/fahclient/work/<wu>/01/viewerTop.json for the atoms
/var/lib/fahclient/work/<wu>/01/viewerFrame1.json for the coordinates
/var/lib/fahclient/work/<wu>/01/system.xml for the bonds
Please grep, if there is no passkey from you in, just to make sure; if you have Dropbox or google drive please send me the link (also PM ok). If you don't have let me know; I can try to set one up.
Please contribute your logs to http://ppd.fahmm.net
-
- Posts: 533
- Joined: Tue May 27, 2008 11:56 pm
- Hardware configuration: Parts:
Asus H370 Mining Master motherboard (X2)
Patriot Viper DDR4 memory 16gb stick (X4)
Nvidia GeForce GTX 1080 gpu (X16)
Intel Core i7 8700 cpu (X2)
Silverstone 1000 watt psu (X4)
Veddha 8 gpu miner case (X2)
Thermaltake hsf (X2)
Ubit riser card (X16) - Location: ames, iowa
Re: GPU trajectories with standard FAHViewer
https://drive.google.com/file/d/0BwB1YA ... sp=sharing
https://drive.google.com/file/d/0BwB1YA ... sp=sharing
https://drive.google.com/file/d/0BwB1YA ... sp=sharing
if these are not the right files let me know and i will try again.
https://drive.google.com/file/d/0BwB1YA ... sp=sharing
https://drive.google.com/file/d/0BwB1YA ... sp=sharing
if these are not the right files let me know and i will try again.
-
- Posts: 1576
- Joined: Tue May 28, 2013 12:14 pm
- Location: Tokyo
Re: GPU trajectories with standard FAHViewer
Hello jimerickson,
please try the latest version from github; there where a number a atoms in some trajectories not converted properly; there might be some more of them. I'm on the search for a universal element data file with all atoms, their radius and mass, and other data. Not that easy to find a clear "free-to-use" data source.
The error message you mentioned might be linked to it though the files you send actually have less atoms (4410). And actually where did you see that message ? on the console from the python script ?
But pls check it out and let me know if it got better.
please try the latest version from github; there where a number a atoms in some trajectories not converted properly; there might be some more of them. I'm on the search for a universal element data file with all atoms, their radius and mass, and other data. Not that easy to find a clear "free-to-use" data source.
The error message you mentioned might be linked to it though the files you send actually have less atoms (4410). And actually where did you see that message ? on the console from the python script ?
But pls check it out and let me know if it got better.
Please contribute your logs to http://ppd.fahmm.net
-
- Posts: 533
- Joined: Tue May 27, 2008 11:56 pm
- Hardware configuration: Parts:
Asus H370 Mining Master motherboard (X2)
Patriot Viper DDR4 memory 16gb stick (X4)
Nvidia GeForce GTX 1080 gpu (X16)
Intel Core i7 8700 cpu (X2)
Silverstone 1000 watt psu (X4)
Veddha 8 gpu miner case (X2)
Thermaltake hsf (X2)
Ubit riser card (X16) - Location: ames, iowa
Re: GPU trajectories with standard FAHViewer
it works!! and yes i saw that message on the console from the python script.
-
- Site Moderator
- Posts: 6359
- Joined: Sun Dec 02, 2007 10:38 am
- Location: Bordeaux, France
- Contact:
Re: GPU trajectories with standard FAHViewer
I tried it on Windows 8.1 64 bits with Python 3.5.1 and after changing the hostnames and the path, I'm getting the following error :
Code: Select all
(c) Christian Lohmann 2015
FAH_WrapperGPUTrajectory
2015-12-28:09:48:46:************************************************************
******
2015-12-28:09:48:46:* (c) Christian Lohmann, 2015
*
2015-12-28:09:48:46:* FAH_WrapperGPUTrajectory
*
2015-12-28:09:48:46:************************************************************
******
2015-12-28:09:48:46:
2015-12-28:09:48:46:start GPU wrapper on host localhost port 36331
2015-12-28:09:48:46:connecting to FAHClient on host localhost port 36330
2015-12-28:09:48:47:Trajectory server created with socket ('127.0.0.1', 36331)
2015-12-28:09:48:47:Trajectory client created with socket ('127.0.0.1', 49676)
2015-12-28:09:48:47:unexpected error <class 'TypeError'>
Traceback (most recent call last):
File "D:\FAH_WrapperGPUTrajectory.py", line 667, in FAHMM_Wrapper_GPU_Trajecto
ry
startPos = clientData.find(startTag)
TypeError: a bytes-like object is required, not 'str'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\FAH_WrapperGPUTrajectory.py", line 744, in <module>
FAHMM_Wrapper_GPU_Trajectory(hostnameWrapper, portWrapper, hostnameClient, p
ortClient)
File "D:\FAH_WrapperGPUTrajectory.py", line 732, in FAHMM_Wrapper_GPU_Trajecto
ry
logging.error("backtrace\n%s", sys.exc_traceback.tb_lineno)
AttributeError: module 'sys' has no attribute 'exc_traceback'
-
- Posts: 1576
- Joined: Tue May 28, 2013 12:14 pm
- Location: Tokyo
Re: GPU trajectories with standard FAHViewer
@toTOw: do you have also Python 2.7 on Windiws ?
Python 3.x has quite some differences I need to adopt for. It's on the todo list
Python 3.x has quite some differences I need to adopt for. It's on the todo list
Please contribute your logs to http://ppd.fahmm.net
-
- Posts: 1576
- Joined: Tue May 28, 2013 12:14 pm
- Location: Tokyo
Re: GPU trajectories with standard FAHViewer
@toTOw: can you please try once more ?
Should work with Python 3 now (at least with the 3.4 I had on Linux; and still 2.7 too); you also don't need to adjust the path and hostname anymore. The script is reading it now from the data provided by the API. Whatever is configured will be used.
python ./FAH_WrapperGPUTrajectory.py
python3.4 ./FAH_WrapperGPUTrajectory.py
Versions of Python depend on individual installations ... hopefully working with Windows this way
Should work with Python 3 now (at least with the 3.4 I had on Linux; and still 2.7 too); you also don't need to adjust the path and hostname anymore. The script is reading it now from the data provided by the API. Whatever is configured will be used.
python ./FAH_WrapperGPUTrajectory.py
Code: Select all
2015-12-29:08:56:12:******************************************************************
2015-12-29:08:56:12:* (c) Christian Lohmann, 2015 *
2015-12-29:08:56:12:* FAH_WrapperGPUTrajectory *
2015-12-29:08:56:12:******************************************************************
2015-12-29:08:56:12:
2015-12-29:08:56:12:running Python 2.7.5
2015-12-29:08:56:12:start GPU wrapper on host linuxpowered port 36331
2015-12-29:08:56:12:connecting to FAHClient on host linuxpowered port 36330
Code: Select all
2015-12-29:08:52:59:******************************************************************
2015-12-29:08:52:59:* (c) Christian Lohmann, 2015 *
2015-12-29:08:52:59:* FAH_WrapperGPUTrajectory *
2015-12-29:08:52:59:******************************************************************
2015-12-29:08:52:59:
2015-12-29:08:52:59:running Python 3.4.3
Please contribute your logs to http://ppd.fahmm.net
-
- Posts: 1094
- Joined: Wed Nov 05, 2008 3:19 pm
- Location: Cambridge, UK
Re: GPU trajectories with standard FAHViewer
Hey, we're getting there.
Tried on Win Vista, nVidia 980 running Core18.
On v1.4, set the two PCs to localhost. Got the Viewer screen with the correct GPU project details (Core 18), but no simulation graphics.
On v2.0. still had to set localhost in two places. Only got the demo.
Suggestion: can your wrapper launch the Viewer ? And somehow select the host form those on my network? (I have two PCs, one Win, one headless Ubuntu, that both fold).
Tried on Win Vista, nVidia 980 running Core18.
On v1.4, set the two PCs to localhost. Got the Viewer screen with the correct GPU project details (Core 18), but no simulation graphics.
On v2.0. still had to set localhost in two places. Only got the demo.
Suggestion: can your wrapper launch the Viewer ? And somehow select the host form those on my network? (I have two PCs, one Win, one headless Ubuntu, that both fold).
-
- Posts: 1576
- Joined: Tue May 28, 2013 12:14 pm
- Location: Tokyo
Re: GPU trajectories with standard FAHViewer
@davidcoton:
actually the wrapper need to run on each system; on the windows box and also on the linux.
from one PC you can then start the viewer and connect to the wrapper (thats why also the script can't/shouldn't start the viewer); ideally the wrapper get put into background and forgotten
As for the simulation: can you please try once to close the viewer and start it again ... keep then script running. I had a similar experience in earlier times but was not able to reproduce.
actually the wrapper need to run on each system; on the windows box and also on the linux.
from one PC you can then start the viewer and connect to the wrapper (thats why also the script can't/shouldn't start the viewer); ideally the wrapper get put into background and forgotten
As for the simulation: can you please try once to close the viewer and start it again ... keep then script running. I had a similar experience in earlier times but was not able to reproduce.
Please contribute your logs to http://ppd.fahmm.net
-
- Posts: 1094
- Joined: Wed Nov 05, 2008 3:19 pm
- Location: Cambridge, UK
Re: GPU trajectories with standard FAHViewer
OK, after some work I've now got v2.1 working on Win and Linux, including viewing work on opposite PCs. Awesome. Thanks, CV.
-
- Posts: 533
- Joined: Tue May 27, 2008 11:56 pm
- Hardware configuration: Parts:
Asus H370 Mining Master motherboard (X2)
Patriot Viper DDR4 memory 16gb stick (X4)
Nvidia GeForce GTX 1080 gpu (X16)
Intel Core i7 8700 cpu (X2)
Silverstone 1000 watt psu (X4)
Veddha 8 gpu miner case (X2)
Thermaltake hsf (X2)
Ubit riser card (X16) - Location: ames, iowa
Re: GPU trajectories with standard FAHViewer
sorry to bother you guys but could one of you write a quick and dirty tutorial on how you get the viewer to work when called remotely? i am really stumped by this. just getting the demo protien. again i apologize for this.
edit: ah i get now. ok this is wonderful. got my laptop rendering from one of my folding rigs. excellent work ChristianVirtual!
edit: ah i get now. ok this is wonderful. got my laptop rendering from one of my folding rigs. excellent work ChristianVirtual!
-
- Site Moderator
- Posts: 6359
- Joined: Sun Dec 02, 2007 10:38 am
- Location: Bordeaux, France
- Contact:
Re: GPU trajectories with standard FAHViewer
ChristianVirtual> the wrapper now starts fine on Windows/python 3.5.1. On first startup, Windows Firewall asks for permissions.
But I didn't go further : does anyone know how to start two command prompts in Windows 8.1 ?
But I didn't go further : does anyone know how to start two command prompts in Windows 8.1 ?
-
- Posts: 1576
- Joined: Tue May 28, 2013 12:14 pm
- Location: Tokyo
Re: GPU trajectories with standard FAHViewer
that's made me smile a bittoTOW wrote:But I didn't go further : does anyone know how to start two command prompts in Windows 8.1 ?
Try this http://answers.microsoft.com/en-us/wind ... c4a?auth=1
Please contribute your logs to http://ppd.fahmm.net