whitespace
This commit is contained in:
@ -84,7 +84,7 @@ class UCL_Device {
|
|||||||
/// Specify whether profiling (device timers) will be used for the device (yes=true)
|
/// Specify whether profiling (device timers) will be used for the device (yes=true)
|
||||||
/** No-op for CUDA and HIP **/
|
/** No-op for CUDA and HIP **/
|
||||||
inline void configure_profiling(const bool profiling_on) {}
|
inline void configure_profiling(const bool profiling_on) {}
|
||||||
|
|
||||||
/// Set the CUDA device to the specified device number
|
/// Set the CUDA device to the specified device number
|
||||||
/** A context and default command queue will be created for the device
|
/** A context and default command queue will be created for the device
|
||||||
* Returns UCL_SUCCESS if successful or UCL_ERROR if the device could not
|
* Returns UCL_SUCCESS if successful or UCL_ERROR if the device could not
|
||||||
|
|||||||
@ -98,7 +98,7 @@ class UCL_Device {
|
|||||||
/// Specify whether profiling (device timers) will be used for the device (yes=true)
|
/// Specify whether profiling (device timers) will be used for the device (yes=true)
|
||||||
/** No-op for CUDA and HIP **/
|
/** No-op for CUDA and HIP **/
|
||||||
inline void configure_profiling(const bool profiling_on) {}
|
inline void configure_profiling(const bool profiling_on) {}
|
||||||
|
|
||||||
/// Set the CUDA device to the specified device number
|
/// Set the CUDA device to the specified device number
|
||||||
/** A context and default command queue will be created for the device
|
/** A context and default command queue will be created for the device
|
||||||
* Returns UCL_SUCCESS if successful or UCL_ERROR if the device could not
|
* Returns UCL_SUCCESS if successful or UCL_ERROR if the device could not
|
||||||
@ -309,9 +309,9 @@ class UCL_Device {
|
|||||||
|
|
||||||
/// For compatability with OCL API
|
/// For compatability with OCL API
|
||||||
inline int auto_set_platform(const enum UCL_DEVICE_TYPE type=UCL_GPU,
|
inline int auto_set_platform(const enum UCL_DEVICE_TYPE type=UCL_GPU,
|
||||||
const std::string vendor="",
|
const std::string vendor="",
|
||||||
const int ndevices=-1,
|
const int ndevices=-1,
|
||||||
const int first_device=-1)
|
const int first_device=-1)
|
||||||
{ return set_platform(0); }
|
{ return set_platform(0); }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|||||||
@ -388,7 +388,7 @@ class UCL_Device {
|
|||||||
cl_platform_id _cl_platforms[20]; // OpenCL IDs for all platforms
|
cl_platform_id _cl_platforms[20]; // OpenCL IDs for all platforms
|
||||||
cl_context _context; // Context used for accessing the device
|
cl_context _context; // Context used for accessing the device
|
||||||
std::vector<cl_command_queue> _cq;// The default command queue for this device
|
std::vector<cl_command_queue> _cq;// The default command queue for this device
|
||||||
bool _cq_profiling; // True=create command queues w/ profiling support
|
bool _cq_profiling; // True=create command queues w/ profiling support
|
||||||
int _device; // UCL_Device ID for current device
|
int _device; // UCL_Device ID for current device
|
||||||
cl_device_id _cl_device; // OpenCL ID for current device
|
cl_device_id _cl_device; // OpenCL ID for current device
|
||||||
std::vector<cl_device_id> _cl_devices; // OpenCL IDs for all devices
|
std::vector<cl_device_id> _cl_devices; // OpenCL IDs for all devices
|
||||||
|
|||||||
@ -78,7 +78,7 @@ class UCL_BaseMat {
|
|||||||
#ifndef _OCL_MAT
|
#ifndef _OCL_MAT
|
||||||
return false;
|
return false;
|
||||||
#else
|
#else
|
||||||
|
|
||||||
#if defined(GERYON_FORCE_SHARED_MAIN_MEM_ON)
|
#if defined(GERYON_FORCE_SHARED_MAIN_MEM_ON)
|
||||||
return true;
|
return true;
|
||||||
#elif defined(GERYON_FORCE_SHARED_MAIN_MEM_OFF)
|
#elif defined(GERYON_FORCE_SHARED_MAIN_MEM_OFF)
|
||||||
@ -89,7 +89,7 @@ class UCL_BaseMat {
|
|||||||
sizeof(cl_device_id),&device,NULL));
|
sizeof(cl_device_id),&device,NULL));
|
||||||
return _shared_mem_device(device);
|
return _shared_mem_device(device);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user