Advertisement
Guest User

Untitled

a guest
Nov 24th, 2014
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. int main(){
  2. try{
  3. RunGPUProfile();
  4. }catch(exception& e){
  5. cout << e.what() << endl;
  6. }
  7. return EXIT_SUCCESS;
  8. }
  9.  
  10. bool GPU_Compute(GPU_InstrumentGroup** instrumentGroup_gpu,GPU_IonCollection**, ionCollection_gpu,LaunchAndIndices* launchParams){
  11.  
  12. cudaProfilerStart();
  13.  
  14. cudaDeviceSetCacheConfig(cudaFuncCachePreferShared);
  15. // run the GPU kernel for each dimension
  16. Compute<<<launchParams->launch->GetGrid(),launchParams->launch->GetThreads()>>>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement