Posts by Ken_g6

1) Message boards : API : #define conflicts building app (Message 52479)
Posted 10 Feb 2014 by Ken_g6
Post:
The app I'm trying to build is my app, and I've built it before, but it's been three years, so I'm sure I've forgotten a lot. My old laptop's hard drive died, so I'm trying to set up a new Windows BOINC build environment, with either VS 2008 express or 2012 express. I built the API without problems (three things I think, including _staticcrt in some cases.) But when I try to link in BOINC 6.10.17, I get:

m:\boinc\api\boinc_api.h(136) : error C2146: syntax error : missing ';' before identifier 'worker_thread_handle'
m:\boinc\api\boinc_api.h(136) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
m:\boinc\api\boinc_api.h(136) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\winnt.h(334) : error C2378: 'HANDLE' : redefinition; symbol cannot be overloaded with a typedef
        m:\boinc\api\boinc_api.h(136) : see declaration of 'HANDLE'
C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\winnt.h(340) : error C2143: syntax error : missing ';' before '*'


And many similar errors for HANDLE, GLOBALHANDLE, LOCALHANDLE, etc. I think it's all related to those terms being redefined in BOINC's header files. I tried substituting in the .NET Framework 3.5 SP1 SDK files, and it had no effect - though I didn't try rebuilding the BOINC libraries that way.

What am I doing wrong?
2) Message boards : API : ATI OpenCL: Handling multiple GPUs (Message 34369)
Posted 26 Aug 2010 by Ken_g6
Post:
Found it! Apparently the --device parameter is common to all GPU apps.

Perhaps I should file a bug report for the example atiopencl app.
3) Message boards : API : ATI OpenCL: Handling multiple GPUs (Message 34340)
Posted 24 Aug 2010 by Ken_g6
Post:
Compared to my last post, this should be an easy one. I'm looking at converting that CUDA app to OpenCL for ATI, but looking at the atiopencl example app in the BOINC source code, I'm confused. The standard way to handle multiple GPUs in BOINC with CUDA is to pass in a --device parameter and select the given device number. I don't see any such parameter in atiopencl.cpp.

So how is the case of multiple GPUs supposed to be handled? Should I create one thread per compatible GPU? Should I just ignore the problem? Or did I miss something?

Thanks!
4) Message boards : API : What did I do to make BOINC restart my app? (Message 34317)
Posted 22 Aug 2010 by Ken_g6
Post:
By the way, I solved it: I'd made a bad Makefile and hadn't #defined USE_BOINC, so the code was ending with exit(0) instead of boinc_finish(0).
5) Message boards : API : What did I do to make BOINC restart my app? (Message 34302)
Posted 21 Aug 2010 by Ken_g6
Post:
Hi,

Since I last posted here, I've managed to make a couple of BOINC applications for PrimeGrid. They're both single-threaded now, so don't worry about that. But one of them, a CUDA app, is doing strange things in some cases.

Here's the main problem (that I'm asking about here): The app completes, apparently successfully, but then for some reason BOINC restarts it. Also, although the app ran for ~10 CPU-seconds at a time four times (that's normal for CUDA apps), BOINC recorded 0 seconds of runtime.

After that last fprintf, I do only two things. First, I re-raise any SIGINT, SIGTERM, or SIGHUP that the process may have received. And second I call boinc_finish, with the argument EXIT_SUCCESS as evidenced by another line in that result.

So why did BOINC restart my app? And why didn't it count any of the runtime? Should I not re-raise those signals? I built the app with the development files that came with Ubuntu 9.04: version 6.2.18-3ubuntu1. Is that too old? Any other ideas?

Thanks!

Edit: I should add that there are also cases where the app restarts on failure. Here's one. The reason for failure isn't relevant here (trying to run on the CUDA emulator.) The fact that it tried it again, after once calling boinc_finish(1), is. Plus, there are no signals trapped on that path.
6) Message boards : News : GPU example apps available (Message 33688)
Posted 7 Jul 2010 by Ken_g6
Post:
Sweet! Two questions:

  1. Where is a download link?
  2. My eternal question: is it possible to build and run the ATI stream app without ATI hardware?

7) Message boards : API : Multi-threaded app as single-threaded? (Message 30752)
Posted 1 Feb 2010 by Ken_g6
Post:
Hi,

I'm converting an existing multi-threaded app for BOINC, which also happens to be my first BOINC app. I found boinc_init_parallel(), and so far I have it set up that way. But the project I'm converting it for may not want the app multi-threaded. I also gather that a multi-threaded app tends not to allow other projects, or other sub-projects of the same project to process WUs at the same time? As far as memory and other resources go, there would be no problem with running multiple copies of the app, each with a single thread. However, the app currently does all actual work in worker threads separate from the main thread.

My question is, how much would I have to do to allow the app to run with a simple boinc_init()? Is simply limiting the number of worker threads to one enough? Or would I need to go in and rip out all the pthreads stuff?

Thanks!
8) Message boards : BOINC client : Core Client takes minutes to start (Message 11836)
Posted 28 Jul 2007 by Ken_g6
Post:
I have a very strange problem with BOINC on my laptop. I have no problem starting the manager; however, the core client takes several minutes to respond to connection requests from the manager.

I had been running a 5.4-level client earlier, and it took about three minutes to start. Logs show that the current 5.10.13 version takes more than *nine minutes* between startup and starting any BOINC project. Any idea what's wrong?

Here's a log from the first time I ran 5.10.13, in case it helps:

StartServiceCtrlDispatcher being called.
This may take several seconds.  Please wait.
2007-07-25 16:12:22 [---] Starting BOINC client version 5.10.13 for windows_intelx86
2007-07-25 16:12:22 [---] log flags: task, file_xfer, sched_ops
2007-07-25 16:12:22 [---] Libraries: libcurl/7.16.1 OpenSSL/0.9.8e zlib/1.2.3
2007-07-25 16:12:22 [---] Executing as a daemon
2007-07-25 16:12:22 [---] Data directory: C:\Program Files\BOINC
2007-07-25 16:12:22 [---] BOINC is running as a service and as a non-system user.
2007-07-25 16:12:22 [---] No application graphics will be available.
2007-07-25 16:12:22 [---] Processor: 1 GenuineIntel Intel(R) Celeron(R) M processor         1.50GHz [x86 Family 6 Model 13 Stepping 8]
2007-07-25 16:12:22 [---] Processor features: fpu tsc pae nx sse sse2 mmx
2007-07-25 16:12:22 [---] Memory: 503.37 MB physical, 1.20 GB virtual
2007-07-25 16:12:22 [---] Disk: 33.63 GB total, 2.94 GB free
2007-07-25 16:12:22 [---] Version change (5.4.11 -> 5.10.13)
2007-07-25 16:12:22 [ABC@home] URL: http://abcathome.com/; Computer ID: 4831; location: (none); project prefs: default
2007-07-25 16:12:22 [rosetta@home] URL: http://boinc.bakerlab.org/rosetta/; Computer ID: 273160; location: (none); project prefs: default
2007-07-25 16:12:22 [Riesel Sieve Project] URL: http://boinc.rieselsieve.com/; Computer ID: 879; location: (none); project prefs: default
2007-07-25 16:12:22 [Project TANPAKU] URL: http://issofty17.is.noda.tus.ac.jp/; Computer ID: 7435; location: (none); project prefs: default
2007-07-25 16:12:22 [QMC@HOME] URL: http://qah.uni-muenster.de/; Computer ID: 30115; location: (none); project prefs: default
2007-07-25 16:12:22 [PrimeGrid] URL: http://www.primegrid.com/; Computer ID: 32714; location: (none); project prefs: default
2007-07-25 16:12:22 [uFluids] URL: http://www.ufluids.net/; Computer ID: 28192; location: (none); project prefs: default
2007-07-25 16:12:22 [World Community Grid] URL: http://www.worldcommunitygrid.org/; Computer ID: 70183; location: (none); project prefs: default
2007-07-25 16:12:22 [---] General prefs: from http://boinc.gorlaeus.net/ (last modified 2006-10-31 08:35:10)
2007-07-25 16:12:22 [---] Host location: work
2007-07-25 16:12:22 [---] General prefs: using separate prefs for work
2007-07-25 16:12:22 [---] Preferences limit memory usage when active to 251.69MB
2007-07-25 16:12:22 [---] Preferences limit memory usage when idle to 453.03MB
2007-07-25 16:12:22 [---] Preferences limit disk usage to 2.47GB
2007-07-25 16:21:47 [---] file projects/boinc.rieselsieve.com/riesel_519.dat.bz2 not found
2007-07-25 16:21:47 [---] Running CPU benchmarks
9) Message boards : BOINC Manager : Using 3% of my CPU?! (Message 10555)
Posted 30 May 2007 by Ken_g6
Post:
Well, the CPU percentage keeps varying. Earlier this afternoon I saw it consistently at 3-4%. When I came in tonight, it was at 1%. Now it's at 2%.
IME when BOINC Manager is in a view that shows continually updated timing data, the Tasks tab especially, it uses a lot more ‘juice’ than when it’s in a mostly static display like the Statistics tab. Could that have anything to do with the changed behaviour?

I thought about that, but no, the percentage didn't change when I opened the window, changed tabs, and closed it again. Note that having the window open, or even minimized, on the Tasks tab brings the CPU to 6% up from 2%, but I was expecting something like that. It went back to at 2% on the Statistics tab.

I suppose the boincmgr.exe process is not essential as long as boinc.exe is running, so I'll try killing it when I don't want to look at stats or tweak things.
10) Message boards : BOINC Manager : Using 3% of my CPU?! (Message 10545)
Posted 29 May 2007 by Ken_g6
Post:
Are you by any chance using the simple view?
Actually, no, I quickly figured out how to get to Advanced view.

This morning, the CPU usage is down to 0-1%. I guess it must have been some startup cost, although I let it run through two 15-minute PrimeGrid WUs last night before writing the first post.

Oh, and my CPU is an old Athlon XP 2200+, so 3% to me may be 1% to you. It has 768MB RAM and integrated graphics; but graphics weren't being used heavily: no screen saver, and only the BOINC icon in the system tray.

Thanks for listening. Hopefully, it's gone for good.
11) Message boards : BOINC Manager : Using 3% of my CPU?! (Message 10532)
Posted 29 May 2007 by Ken_g6
Post:
Hi,

I just upgraded from way back at BOINC 5.4.9 to the latest version. That version almost always registered as using 0% CPU in Task Manager, when minimized to the system tray. This version is using 3% of my CPU, just sitting there in the tray!

How can I get that number down to 1% or 0%? And why on earth is it using 3% in the first place?

Thanks!




Copyright © 2021 University of California. 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.