Changes between Version 31 and Version 32 of AppCoprocessor


Ignore:
Timestamp:
Jun 6, 2011, 10:09:17 PM (13 years ago)
Author:
davea
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • AppCoprocessor

    v31 v32  
    2222This will exit the application, and will tell the BOINC client to restart it again in at least 60 seconds.
    2323
    24 == Command-line arguments ==
     24== Device selection ==
    2525
    2626Some hosts have multiple GPUs.
     
    3636}}}
    3737
     38== Finalizing GPU on premature exit ==
     39
     40The BOINC client may kill your application in the middle.
     41This may leave the GPU in a bad state.
     42To prevent this, call
     43{{{
     44boinc_begin_critical_section();
     45}}}
     46before using the GPU, and between GPU kernels do
     47{{{
     48if (boinc_status.quit_request || boinc_status.abort_request) {
     49    // cudaThreadSynchronize(); or whatever is needed
     50    boinc_end_critical_section();
     51    while (1) boinc_sleep(1);
     52}
    3853== Plan classes ==
    3954