Welcome to MilkyWay@home

optimized app suggestion

Message boards : Application Code Discussion : optimized app suggestion
Message board moderation

To post messages, you must log in.

Previous · 1 · 2

AuthorMessage
Profile Travis
Volunteer moderator
Project administrator
Project developer
Project tester
Project scientist

Send message
Joined: 30 Aug 07
Posts: 2046
Credit: 26,480
RAC: 0
Message 9245 - Posted: 27 Jan 2009, 1:56:29 UTC - in response to Message 9237.  

I don't think you guys have read any of my posts. Unless someone makes a post with a link to their optimized application(s) (preferably in the application code discussion), there's nothing I can do about it.

Speedimic has been nice enough to provide optimized linux apps, and I've stickied the post about them, but no one has been forthcoming for windows.
ID: 9245 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
Misfit
Avatar

Send message
Joined: 27 Aug 07
Posts: 915
Credit: 1,503,319
RAC: 0
Message 9249 - Posted: 27 Jan 2009, 2:00:53 UTC - in response to Message 9245.  

I don't think you guys have read any of my posts. Unless someone makes a post with a link to their optimized application(s) (preferably in the application code discussion), there's nothing I can do about it.

Now that's an unfair generalization. You know I always read your posts before the morning paper.
me@rescam.org
ID: 9249 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
Profile Gavin Shaw
Avatar

Send message
Joined: 16 Jan 08
Posts: 98
Credit: 1,371,299
RAC: 0
Message 9252 - Posted: 27 Jan 2009, 2:14:25 UTC - in response to Message 9245.  

I don't think you guys have read any of my posts. Unless someone makes a post with a link to their optimized application(s) (preferably in the application code discussion), there's nothing I can do about it.

Speedimic has been nice enough to provide optimized linux apps, and I've stickied the post about them, but no one has been forthcoming for windows.


And I'm probably going to catch flak for this. But several people here have been asking for information on what is used to compile the win apps. We know you don't do that, Dave does. But he hasn't been around on the forum for a while. Can you get him or get him to tell you and post that information somewhere. There are a few members of the team I'm on (including me) who are discussing recompiling win apps for MW, but we would like to know what Dave uses (compilers, libraries, scripts etc). As I said linux and mac have make files which allow someone to pretty much compile the app from the word go (they only need the source and boinc api). Win has nothing like this given in the code release. Somehow I don't think Dave give multiple commands to recompile the app ever time it is needed, but rather uses a batch or script file or VS solution file. If so, can we see it.


Never surrender and never give up. In the darkest hour there is always hope.

ID: 9252 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
Profile Travis
Volunteer moderator
Project administrator
Project developer
Project tester
Project scientist

Send message
Joined: 30 Aug 07
Posts: 2046
Credit: 26,480
RAC: 0
Message 9254 - Posted: 27 Jan 2009, 3:41:02 UTC - in response to Message 9252.  
Last modified: 27 Jan 2009, 3:46:15 UTC

I don't think you guys have read any of my posts. Unless someone makes a post with a link to their optimized application(s) (preferably in the application code discussion), there's nothing I can do about it.

Speedimic has been nice enough to provide optimized linux apps, and I've stickied the post about them, but no one has been forthcoming for windows.


And I'm probably going to catch flak for this. But several people here have been asking for information on what is used to compile the win apps. We know you don't do that, Dave does. But he hasn't been around on the forum for a while. Can you get him or get him to tell you and post that information somewhere. There are a few members of the team I'm on (including me) who are discussing recompiling win apps for MW, but we would like to know what Dave uses (compilers, libraries, scripts etc). As I said linux and mac have make files which allow someone to pretty much compile the app from the word go (they only need the source and boinc api). Win has nothing like this given in the code release. Somehow I don't think Dave give multiple commands to recompile the app ever time it is needed, but rather uses a batch or script file or VS solution file. If so, can we see it.



Actually, from what I've heard it's kind of a pain in the butt for him. Although, i'm working on getting vmware fusion and windows so I can compile the windows binaries too... as much as it pains me to put windows on my pretty macbook pro :P

I'm pretty sure Dave uses visual studio to do the compilation. Probably modified from here: http://www.spy-hill.com/~myers/help/boinc/boinc-on-windows.html

I remember hearing something about a way to compile boinc applications using cygwin and a makefile... which would be nice and easy, but don't remember where that was.

Unfortunately, the information when it comes to compiling boinc applications is pretty lacking :( I remember what a pain it was to get things working initially even for linux and osx.
ID: 9254 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
jedirock
Avatar

Send message
Joined: 8 Nov 08
Posts: 178
Credit: 6,140,854
RAC: 0
Message 9256 - Posted: 27 Jan 2009, 4:02:10 UTC - in response to Message 9254.  

I don't think you guys have read any of my posts. Unless someone makes a post with a link to their optimized application(s) (preferably in the application code discussion), there's nothing I can do about it.

Speedimic has been nice enough to provide optimized linux apps, and I've stickied the post about them, but no one has been forthcoming for windows.


And I'm probably going to catch flak for this. But several people here have been asking for information on what is used to compile the win apps. We know you don't do that, Dave does. But he hasn't been around on the forum for a while. Can you get him or get him to tell you and post that information somewhere. There are a few members of the team I'm on (including me) who are discussing recompiling win apps for MW, but we would like to know what Dave uses (compilers, libraries, scripts etc). As I said linux and mac have make files which allow someone to pretty much compile the app from the word go (they only need the source and boinc api). Win has nothing like this given in the code release. Somehow I don't think Dave give multiple commands to recompile the app ever time it is needed, but rather uses a batch or script file or VS solution file. If so, can we see it.



Actually, from what I've heard it's kind of a pain in the butt for him. Although, i'm working on getting vmware fusion and windows so I can compile the windows binaries too... as much as it pains me to put windows on my pretty macbook pro :P

I'm pretty sure Dave uses visual studio to do the compilation. Probably modified from here: http://www.spy-hill.com/~myers/help/boinc/boinc-on-windows.html

I remember hearing something about a way to compile boinc applications using cygwin and a makefile... which would be nice and easy, but don't remember where that was.

Unfortunately, the information when it comes to compiling boinc applications is pretty lacking :( I remember what a pain it was to get things working initially even for linux and osx.

I can see what I can do with Code::Blocks and MinGW in a couple days. Just waiting on a new power supply for my desktop cruncher.
ID: 9256 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
Alton

Send message
Joined: 19 Nov 08
Posts: 4
Credit: 181,422
RAC: 0
Message 9269 - Posted: 27 Jan 2009, 18:28:08 UTC - in response to Message 9256.  

I have Visual Studio installed for some C# development I'm doing. I'll give it a try sometime this week or this weekend depending on how things go.

I have a Vista-32,XP-32,and Win7-64 installation along with my 32 and 64 bit linux boxes, so I'll try to compile it on as many platforms as I can and get back with you.
ID: 9269 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
Alton

Send message
Joined: 19 Nov 08
Posts: 4
Credit: 181,422
RAC: 0
Message 9289 - Posted: 28 Jan 2009, 3:21:57 UTC

I tried. I munged around for 3 hours trying to get WX and then Boinc to compile, only to find that there is NOTHING that tells me how to set up VS to compile milkyway.

How do the admins do it? There is a make file for linux and mac. What do you guys do for windows? How is it compiled. Just some general direction to get me going would be appreciated.
ID: 9289 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
Temujin

Send message
Joined: 12 Oct 07
Posts: 77
Credit: 404,471,187
RAC: 0
Message 9292 - Posted: 28 Jan 2009, 10:29:26 UTC - in response to Message 9289.  

I tried. I munged around for 3 hours trying to get WX and then Boinc to compile, only to find that there is NOTHING that tells me how to set up VS to compile milkyway.

How do the admins do it? There is a make file for linux and mac. What do you guys do for windows? How is it compiled. Just some general direction to get me going would be appreciated.

I'm used to compiling in linux with makefiles, so I'm in the same boat as you.

To start with I made a C++ project from source files, pointing VS at the astronomy directory. Somewhere in VS you must be able to specify to compile .c files as c++ but I couldn't find it so renamed all the milkyway .c files to .cpp. Once I did that and recreated the project it came together much better.

I found in VS that if you right click the project, select properties, C/C++ General you can add extra include directories, and Library directories in Linker/Genreal
Also found to specify libraries somewhere that escapes me, I'll find out tonight.

I have no idea if this is the right or wrong way to do it but at least I'm making progress (I think).
ID: 9292 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
Profile Gavin Shaw
Avatar

Send message
Joined: 16 Jan 08
Posts: 98
Credit: 1,371,299
RAC: 0
Message 9295 - Posted: 28 Jan 2009, 11:15:49 UTC

Well I get it to kind of get close to compiling.

I have two errors.

1. It can not open include file boinc_win.h but I wonder if that error is more related to boinc_win.cpp being an 'empty' file.

2. srand48 variable in probability.c (right near the end of the file). I think it is suppose to be drand48?

void prob_ok_init() {
	srand48(time(NULL));
}


What version / revision of the boinc source are you using (optimizers and project)?

Never surrender and never give up. In the darkest hour there is always hope.

ID: 9295 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
Alton

Send message
Joined: 19 Nov 08
Posts: 4
Credit: 181,422
RAC: 0
Message 9301 - Posted: 28 Jan 2009, 15:46:52 UTC - in response to Message 9292.  


To start with I made a C++ project from source files, pointing VS at the astronomy directory. Somewhere in VS you must be able to specify to compile .c files as c++ but I couldn't find it so renamed all the milkyway .c files to .cpp. Once I did that and recreated the project it came together much better.


Good idea. I didn't even think of that. I'm also wondering how the APP_NAME/APP_VERSION stuff is supposed to work. In Linux, that is handled in the Makefile. I'm going to try some more tonight.
ID: 9301 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
Temujin

Send message
Joined: 12 Oct 07
Posts: 77
Credit: 404,471,187
RAC: 0
Message 9303 - Posted: 28 Jan 2009, 15:59:19 UTC - in response to Message 9301.  

I'm also wondering how the APP_NAME/APP_VERSION stuff is supposed to work. In Linux, that is handled in the Makefile. I'm going to try some more tonight.
Yep, its much easier with a makefile :-)

I found how to define APP_NAME/APP_VERSION but again I can't remember where I did it.
I'll post what I did when I get home tonight



ID: 9303 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
Profile Travis
Volunteer moderator
Project administrator
Project developer
Project tester
Project scientist

Send message
Joined: 30 Aug 07
Posts: 2046
Credit: 26,480
RAC: 0
Message 9304 - Posted: 28 Jan 2009, 17:58:47 UTC - in response to Message 9295.  

Well I get it to kind of get close to compiling.

I have two errors.

1. It can not open include file boinc_win.h but I wonder if that error is more related to boinc_win.cpp being an 'empty' file.

2. srand48 variable in probability.c (right near the end of the file). I think it is suppose to be drand48?

void prob_ok_init() {
	srand48(time(NULL));
}


What version / revision of the boinc source are you using (optimizers and project)?


srand48 and drand48 don't work on windows. There should have been a flag around that to ignore it if it's for windows.

[code]#ifndef _WIN32
void prob_ok_init() {
srand48(time(NULL));
}
#endif[/code

or something like that. I'm going to move this thread to the code discussion forum since it's more applicable there ;P
ID: 9304 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
Temujin

Send message
Joined: 12 Oct 07
Posts: 77
Credit: 404,471,187
RAC: 0
Message 9305 - Posted: 28 Jan 2009, 18:02:04 UTC - in response to Message 9301.  

I'm also wondering how the APP_NAME/APP_VERSION stuff is supposed to work.

right then, this is how I did it

right click on project, select properties, set the configuration box to All configurations,
then Configuration Properties, C/C++, Command Line and added them into the Additional Options box with
/D "APP_NAME=Temujin"
/D "APP_VERSION=0.16"
/D "GMLE_BOINC"


ID: 9305 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
Cluster Physik

Send message
Joined: 26 Jul 08
Posts: 627
Credit: 94,940,203
RAC: 0
Message 9306 - Posted: 28 Jan 2009, 18:36:35 UTC - in response to Message 9304.  
Last modified: 28 Jan 2009, 18:37:21 UTC

2. srand48 variable in probability.c (right near the end of the file). I think it is suppose to be drand48?

void prob_ok_init() {
	srand48(time(NULL));
}



srand48 and drand48 don't work on windows. There should have been a flag around that to ignore it if it's for windows.

#ifndef _WIN32
void prob_ok_init() {
	srand48(time(NULL));
}
#endif


or something like that.

Hmm, in the version I downloaded some time ago, there is

#ifdef _WIN32
#define drand48() ((double) rand() / RAND_MAX)
#endif

at the beginning of probability.c. But that gives you only 15bits resolution for your random number, not 48 (I guess that's the desired number). But for the application it does not matter, as it is never called.
ID: 9306 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
Profile Travis
Volunteer moderator
Project administrator
Project developer
Project tester
Project scientist

Send message
Joined: 30 Aug 07
Posts: 2046
Credit: 26,480
RAC: 0
Message 9307 - Posted: 28 Jan 2009, 18:49:52 UTC - in response to Message 9305.  

I'm also wondering how the APP_NAME/APP_VERSION stuff is supposed to work.

right then, this is how I did it

right click on project, select properties, set the configuration box to All configurations,
then Configuration Properties, C/C++, Command Line and added them into the Additional Options box with
/D "APP_NAME=Temujin"
/D "APP_VERSION=0.16"
/D "GMLE_BOINC"




You might need quotes around Temujin to make it a string.
ID: 9307 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
Profile Gavin Shaw
Avatar

Send message
Joined: 16 Jan 08
Posts: 98
Credit: 1,371,299
RAC: 0
Message 9328 - Posted: 29 Jan 2009, 0:27:43 UTC - in response to Message 9305.  
Last modified: 29 Jan 2009, 0:29:21 UTC

I'm also wondering how the APP_NAME/APP_VERSION stuff is supposed to work.

right then, this is how I did it

right click on project, select properties, set the configuration box to All configurations,
then Configuration Properties, C/C++, Command Line and added them into the Additional Options box with
/D "APP_NAME=Temujin"
/D "APP_VERSION=0.16"
/D "GMLE_BOINC"





What is the GMLE_BOINC option for?

Also I have fixed the srand issue using Travis's code. But now I get 6 errors of can not open include file 'boinc_win.h'

Before I had only one.

Anyone else avoid this? Or is it just my library paths are incomplete?
Never surrender and never give up. In the darkest hour there is always hope.

ID: 9328 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
Temujin

Send message
Joined: 12 Oct 07
Posts: 77
Credit: 404,471,187
RAC: 0
Message 9339 - Posted: 29 Jan 2009, 8:32:01 UTC - in response to Message 9328.  

What is the GMLE_BOINC option for?

But now I get 6 errors of can not open include file 'boinc_win.h'

I defined GMLE_BOINC because it was defined in make.linux :/
and I don't get an error for boinc_win.h so I reckon you've missed some include directories.
ID: 9339 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
Profile Travis
Volunteer moderator
Project administrator
Project developer
Project tester
Project scientist

Send message
Joined: 30 Aug 07
Posts: 2046
Credit: 26,480
RAC: 0
Message 9379 - Posted: 30 Jan 2009, 0:53:19 UTC - in response to Message 9339.  
Last modified: 30 Jan 2009, 0:54:06 UTC

What is the GMLE_BOINC option for?

But now I get 6 errors of can not open include file 'boinc_win.h'

I defined GMLE_BOINC because it was defined in make.linux :/
and I don't get an error for boinc_win.h so I reckon you've missed some include directories.


GMLE_BOINC sets a flag that adds code we don't use in the MPI version of the application (that we run on the clusters and bluegene supercomputer here at RPI), but do use in the BOINC version. This does stuff like BOINC checkpointing and other built in boinc functions.

We like having only one version of code to update for both boinc and MPI so that we know we're getting the same results for each.
ID: 9379 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
Previous · 1 · 2

Message boards : Application Code Discussion : optimized app suggestion

©2024 Astroinformatics Group