Skip to content

Commit

Permalink
Bug fix for CUDA
Browse files Browse the repository at this point in the history
Fixed bug where an additional thread is opened on CUDA
  • Loading branch information
rschoene authored Mar 15, 2018
1 parent b0d3c84 commit 2a23f38
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions source_files/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -315,12 +315,6 @@ static void evaluate_environment()
current_cpu++;
}
}
$CUDA #ifdef CUDA
$CUDA NUM_THREADS++; //+1 for the CUDA-thread!
$CUDA #endif
$CUDA #elif defined(CUDA)
$CUDA if (NUM_THREADS==0) NUM_THREADS = cpuinfo->num_cpus+1; //+1 for the CUDA-thread!
$CUDA else NUM_THREADS++;
#else
if (NUM_THREADS==0) NUM_THREADS = cpuinfo->num_cpus;
#endif
Expand Down

0 comments on commit 2a23f38

Please sign in to comment.