Do not use cuda API when CUDA not found.
Fix end of lines.
This commit is contained in:
parent
36ba75b598
commit
1c5da0e341
@ -153,11 +153,11 @@ int nv::cuda::deviceCount()
|
||||
|
||||
int nv::cuda::getFastestDevice()
|
||||
{
|
||||
const int device_count = deviceCount();
|
||||
|
||||
int max_gflops_device = 0;
|
||||
#if defined HAVE_CUDA
|
||||
int max_gflops = 0;
|
||||
|
||||
const int device_count = deviceCount();
|
||||
int current_device = 0;
|
||||
while (current_device < device_count)
|
||||
{
|
||||
@ -176,7 +176,7 @@ int nv::cuda::getFastestDevice()
|
||||
|
||||
current_device++;
|
||||
}
|
||||
|
||||
#endif
|
||||
return max_gflops_device;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user