+- +-
Say hello if visiting :) by Gecko
11 Jan 2023, 07:43:05 pm

Seti is down again by Mike
09 Aug 2017, 10:02:44 am

Some considerations regarding OpenCL MultiBeam app tuning from algorithm view by Raistmer
11 Dec 2016, 06:30:56 am

Loading APU to the limit: performance considerations by Mike
05 Nov 2016, 06:49:26 am

Better sleep on Windows - new round by Raistmer
26 Aug 2016, 02:02:31 pm

Author Topic: Modified SETI MB CUDA + opt AP package for full GPU utilization  (Read 176056 times)

Offline Raistmer

  • Working Code Wizard
  • Volunteer Developer
  • Knight who says 'Ni!'
  • *****
  • Posts: 14349
Re: Modified SETI MB CUDA + opt AP package for full GPU utilization
« Reply #45 on: 25 Dec 2008, 04:11:35 pm »
Well, 6.06 sources differ form my own.
For example:

Mine:
          // TODO: Deallocate these at the end of the function
#ifdef USE_CUDA
         if(gSetiUseCudaDevice)
            cudaAcc_fftwf_plan_dft_1d(FftNum, FftLen, NumDataPoints);
   
From Berkeley's repository:

#ifdef USE_CUDA
            // Create FFT plan configuration
         if(gSetiUseCudaDevice)
            {
            if(cudaAcc_fftwf_plan_dft_1d(FftNum, FftLen, NumDataPoints))
                {
                    // If were here, something went wrong in the plan.
                    // Possibly ran out of video memory.  Destroy what we
                    // have and fallback to host CPU processing.
                    fprintf(stderr, "setiathome_CUDA: CUDA runtime ERROR in plan FFT. Falling back to HOST CPU processing...\n");
                    cudaAcc_free();
                    gSetiUseCudaDevice = 0;

                }
            }

#endif

Will rebuild mod with new sources and re-enable access to it for testing.

Offline Raistmer

  • Working Code Wizard
  • Volunteer Developer
  • Knight who says 'Ni!'
  • *****
  • Posts: 14349
Re: Modified SETI MB CUDA + opt AP package for full GPU utilization
« Reply #46 on: 25 Dec 2008, 06:10:30 pm »
Ok, here is a new package, based on current (380) revision of Berkeley's SETI CUDA branch.


[attachment deleted by admin]

Offline Jason G

  • Construction Fraggle
  • Knight who says 'Ni!'
  • *****
  • Posts: 8980
Re: Modified SETI MB CUDA + opt AP package for full GPU utilization
« Reply #47 on: 25 Dec 2008, 06:27:03 pm »
Does 6.06 fix the memory leak at least ?

Offline Raistmer

  • Working Code Wizard
  • Volunteer Developer
  • Knight who says 'Ni!'
  • *****
  • Posts: 14349
Re: Modified SETI MB CUDA + opt AP package for full GPU utilization
« Reply #48 on: 25 Dec 2008, 06:42:29 pm »
Does 6.06 fix the memory leak at least ?
I think it fixes nothing. But wanna check this for sure.
Joe's proposal about leak fixing still pending. I didn't check this in sources still but pretty sure that modification not included in sources by Berkeley.
rev 380 from 17 December ....

ADDON: now I will use this "up to date"mod to check broken results standalone too.
I didn't see any problems with PG* VHARs before, only with VLARs....

And first E-mailed sources differ from Berkeley's rep ones... So it's worth to try...
« Last Edit: 25 Dec 2008, 06:49:55 pm by Raistmer »

Offline Raistmer

  • Working Code Wizard
  • Volunteer Developer
  • Knight who says 'Ni!'
  • *****
  • Posts: 14349
Re: Modified SETI MB CUDA + opt AP package for full GPU utilization
« Reply #49 on: 26 Dec 2008, 04:06:42 pm »
Here is new build with logging of AR of overflowed tasks.
It will create and append later file r_debug.txt on C:\ and will write AR of overflowed task there.
Sure there will be "legal" overflows too, but any overflows not validated against CPU result worth to report.

Just replace CUDA MB executable from my last package with this one. Name remains same.

Logging mod is:

  if (e == RESULT_OVERFLOW) {
        fprintf(stderr, "SETI@Home Informational message -9 result_overflow\n");
        fprintf(stderr, "NOTE: The number of results detected exceeds the storage space allocated.\n");
      {//R: Logging of AR of overflowed task
         FILE* f=fopen("C:\\r_debug.txt","a");
         if(f){
            fprintf(f,"AR of overflowed task is\t%f\n",swi.angle_range);
            fclose(f);
         }
      }



[attachment deleted by admin]
« Last Edit: 26 Dec 2008, 04:37:47 pm by Raistmer »

wndrbr3d

  • Guest
Re: Modified SETI MB CUDA + opt AP package for full GPU utilization
« Reply #50 on: 27 Dec 2008, 01:34:42 pm »
Why don't you have the debug file write to the BOINC project folder?

People running Vista won't have access to write to root unless they're running BOINC and it's child processes as administrator. This way everyone can get a debug, not just the XP users  ;D

popandbob

  • Guest
Re: Modified SETI MB CUDA + opt AP package for full GPU utilization
« Reply #51 on: 27 Dec 2008, 02:17:29 pm »
Also might be an idea to log the AR's of the wu's that don't overflow to see if there are any ranges that for whatever reason don't overflow...
Like for me 2.71 overflows 2.72 doesn't (for the most part)

Offline Raistmer

  • Working Code Wizard
  • Volunteer Developer
  • Knight who says 'Ni!'
  • *****
  • Posts: 14349
Re: Modified SETI MB CUDA + opt AP package for full GPU utilization
« Reply #52 on: 27 Dec 2008, 04:28:17 pm »
Why don't you have the debug file write to the BOINC project folder?

People running Vista won't have access to write to root unless they're running BOINC and it's child processes as administrator. This way everyone can get a debug, not just the XP users  ;D
To lazy to figure out where to get SETI project directory on BOINC installation. Any ideas?

Offline Raistmer

  • Working Code Wizard
  • Volunteer Developer
  • Knight who says 'Ni!'
  • *****
  • Posts: 14349
Re: Modified SETI MB CUDA + opt AP package for full GPU utilization
« Reply #53 on: 27 Dec 2008, 04:29:13 pm »
Also might be an idea to log the AR's of the wu's that don't overflow to see if there are any ranges that for whatever reason don't overflow...
Like for me 2.71 overflows 2.72 doesn't (for the most part)
Don't wanna be blaming for hard drive overloading ;)

Offline Josef W. Segur

  • Janitor o' the Board
  • Knight who says 'Ni!'
  • *****
  • Posts: 3112
Re: Modified SETI MB CUDA + opt AP package for full GPU utilization
« Reply #54 on: 27 Dec 2008, 10:35:25 pm »
Why don't you have the debug file write to the BOINC project folder?

People running Vista won't have access to write to root unless they're running BOINC and it's child processes as administrator. This way everyone can get a debug, not just the XP users  ;D
To lazy to figure out where to get SETI project directory on BOINC installation. Any ideas?

The project_dir in the APP_INIT_DATA structure. The structure is defined in the BOINC app_ipc.h file, seti.h has a "extern APP_INIT_DATA app_init_data;" line, and part of initialization is to read the init_data.xml file in the slot directory and fill in the structure. For standalone testing it will probably be a null string, then maybe just using the current directory might make sense.

That's assuming the app will have permission to write in the project directory, I'm not sure about that.
                                                                         Joe

Offline Raistmer

  • Working Code Wizard
  • Volunteer Developer
  • Knight who says 'Ni!'
  • *****
  • Posts: 14349
Re: Modified SETI MB CUDA + opt AP package for full GPU utilization
« Reply #55 on: 28 Dec 2008, 04:23:40 am »
Thanks again, Joe :)
Well, writing in current directory not suitable for BOINC runs (slot will be deleted). Will try to change to project directory and check on VIsta.
C:\r_debug.txt still doesn't exist here although host completed few VHAR tasks. SO, BOINC-summoned app can't access to C:\ indeed  :-\

Offline efmer (fred)

  • Alpha Tester
  • Knight o' The Round Table
  • ***
  • Posts: 147
    • efmer
Re: Modified SETI MB CUDA + opt AP package for full GPU utilization
« Reply #56 on: 28 Dec 2008, 10:52:17 am »
This works always as iit is the Windows Temp Directory GetTempPath(MAX_PATH,wTempPath);
TThrottle Keep your temperatures controlled.
BoincTasks The best way to view BOINC

Offline Raistmer

  • Working Code Wizard
  • Volunteer Developer
  • Knight who says 'Ni!'
  • *****
  • Posts: 14349
Re: Modified SETI MB CUDA + opt AP package for full GPU utilization
« Reply #57 on: 28 Dec 2008, 11:28:05 am »
Thanks here too and welcome on Lunatics forums :)

Offline Slawek

  • Knight o' The Realm
  • **
  • Posts: 55
Re: Modified SETI MB CUDA + opt AP package for full GPU utilization
« Reply #58 on: 28 Dec 2008, 12:58:26 pm »
Hi

What news in CUDA APP ? new version?

Offline Raistmer

  • Working Code Wizard
  • Volunteer Developer
  • Knight who says 'Ni!'
  • *****
  • Posts: 14349
Re: Modified SETI MB CUDA + opt AP package for full GPU utilization
« Reply #59 on: 28 Dec 2008, 01:07:25 pm »
Hi

What news in CUDA APP ? new version?
Ok, will build one with log in temp folder. And available memory log at task startup. It will illustrate memory leak problem I hope. So, only cosmetic changes.
Nothing new in Berkeley's repository still.

Addon: here some cosmetic improved version
Now will be this string in stder:

Total GPU memory 402653184    free GPU memory 355926016

If the GPU memory value will decrease from task to task - it's better to reboot before CUDA failures begins.


[attachment deleted by admin]
« Last Edit: 28 Dec 2008, 01:30:29 pm by Raistmer »

 

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?
Members
Total Members: 97
Latest: ToeBee
New This Month: 0
New This Week: 0
New Today: 0
Stats
Total Posts: 59559
Total Topics: 1672
Most Online Today: 355
Most Online Ever: 983
(20 Jan 2020, 03:17:55 pm)
Users Online
Members: 0
Guests: 28
Total: 28
Powered by EzPortal