Message boards :
Application Code Discussion :
optimized app suggestion
Message board moderation
Previous · 1 · 2
Author | Message |
---|---|
Send message Joined: 30 Aug 07 Posts: 2046 Credit: 26,480 RAC: 0 |
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. |
Send message Joined: 27 Aug 07 Posts: 915 Credit: 1,503,319 RAC: 0 |
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 |
Send message Joined: 16 Jan 08 Posts: 98 Credit: 1,371,299 RAC: 0 |
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. 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. |
Send message Joined: 30 Aug 07 Posts: 2046 Credit: 26,480 RAC: 0 |
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. 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. |
Send message Joined: 8 Nov 08 Posts: 178 Credit: 6,140,854 RAC: 0 |
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. 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. |
Send message Joined: 19 Nov 08 Posts: 4 Credit: 181,422 RAC: 0 |
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. |
Send message Joined: 19 Nov 08 Posts: 4 Credit: 181,422 RAC: 0 |
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. |
Send message Joined: 12 Oct 07 Posts: 77 Credit: 404,471,187 RAC: 0 |
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. 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). |
Send message Joined: 16 Jan 08 Posts: 98 Credit: 1,371,299 RAC: 0 |
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. |
Send message Joined: 19 Nov 08 Posts: 4 Credit: 181,422 RAC: 0 |
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. |
Send message Joined: 12 Oct 07 Posts: 77 Credit: 404,471,187 RAC: 0 |
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 |
Send message Joined: 30 Aug 07 Posts: 2046 Credit: 26,480 RAC: 0 |
Well I get it to kind of get close to compiling. 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 |
Send message Joined: 12 Oct 07 Posts: 77 Credit: 404,471,187 RAC: 0 |
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" |
Send message Joined: 26 Jul 08 Posts: 627 Credit: 94,940,203 RAC: 0 |
2. srand48 variable in probability.c (right near the end of the file). I think it is suppose to be drand48? 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. |
Send message Joined: 30 Aug 07 Posts: 2046 Credit: 26,480 RAC: 0 |
I'm also wondering how the APP_NAME/APP_VERSION stuff is supposed to work. You might need quotes around Temujin to make it a string. |
Send message Joined: 16 Jan 08 Posts: 98 Credit: 1,371,299 RAC: 0 |
I'm also wondering how the APP_NAME/APP_VERSION stuff is supposed to work. 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. |
Send message Joined: 12 Oct 07 Posts: 77 Credit: 404,471,187 RAC: 0 |
What is the GMLE_BOINC option for? 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. |
Send message Joined: 30 Aug 07 Posts: 2046 Credit: 26,480 RAC: 0 |
What is the GMLE_BOINC option for? 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. |
©2024 Astroinformatics Group