264 | | BOINC applications can be run in "standalone" mode for testing, or under the control of the BOINC client. You might want your application to behave differently in the two cases. For example you might want to output debugging information if the application is running standalone. To determine if the application is running in standalone mode or under the control of the BOINC client, call |
| 264 | BOINC applications can be run in "standalone" mode for testing, or under the control of the BOINC client. |
| 265 | You might want your application to behave differently in the two cases. |
| 266 | For example you might want to output debugging information if the application is running standalone. |
| 267 | To determine if the application is running in standalone mode or under the control of the BOINC client, call |
| 303 | |
| 304 | == Temporary exit == |
| 305 | |
| 306 | If a GPU application fails to allocate GPU RAM, it may be a temporary problem |
| 307 | (non-BOINC programs have GPU RAM allocated). |
| 308 | In this case they should call |
| 309 | |
| 310 | {{{ |
| 311 | #!c++ |
| 312 | int boinc_temporary_exit(int delay); |
| 313 | }}} |
| 314 | |
| 315 | This will exit the application, and will tell the BOINC client to restart it |
| 316 | again in at least '''delay''' seconds. |
| 317 | (This works with 6.10.25+ client; |
| 318 | on other clients, it will potentially restart immediately). |