Fixing CUDA version for new device query functions.
This commit is contained in:
@ -13,7 +13,7 @@
|
||||
copyright : (C) 2009 by W. Michael Brown
|
||||
email : brownw@ornl.gov
|
||||
***************************************************************************/
|
||||
|
||||
|
||||
/* -----------------------------------------------------------------------
|
||||
Copyright (2009) Sandia Corporation. Under the terms of Contract
|
||||
DE-AC04-94AL85000 with Sandia Corporation, the U.S. Government retains
|
||||
@ -290,7 +290,7 @@ inline void UCL_Device::print_all(std::ostream &out) {
|
||||
else
|
||||
out << "Unknown\n";
|
||||
#endif
|
||||
#if CUDART_VERSION >= 3000
|
||||
#if CUDART_VERSION >= 3010
|
||||
out << " Concurrent kernel execution: ";
|
||||
if (_properties[i].concurrentKernels)
|
||||
out << "Yes\n";
|
||||
|
||||
@ -20,7 +20,7 @@
|
||||
certain rights in this software. This software is distributed under
|
||||
the Simplified BSD License.
|
||||
----------------------------------------------------------------------- */
|
||||
|
||||
|
||||
#ifndef NVD_DEVICE
|
||||
#define NVD_DEVICE
|
||||
|
||||
@ -233,7 +233,7 @@ inline UCL_Device::UCL_Device() {
|
||||
&_properties.back().canMapHostMemory,
|
||||
CU_DEVICE_ATTRIBUTE_CAN_MAP_HOST_MEMORY, dev));
|
||||
#endif
|
||||
#if CUDA_VERSION >= 3000
|
||||
#if CUDA_VERSION >= 3010
|
||||
CU_SAFE_CALL_NS(cuDeviceGetAttribute(
|
||||
&_properties.back().concurrentKernels,
|
||||
CU_DEVICE_ATTRIBUTE_CONCURRENT_KERNELS, dev));
|
||||
@ -339,7 +339,7 @@ inline void UCL_Device::print_all(std::ostream &out) {
|
||||
else
|
||||
out << "No\n";
|
||||
#endif
|
||||
#if CUDA_VERSION >= 3000
|
||||
#if CUDA_VERSION >= 3010
|
||||
out << " Concurrent kernel execution: ";
|
||||
if (_properties[i].concurrentKernels)
|
||||
out << "Yes\n";
|
||||
|
||||
Reference in New Issue
Block a user