diff --git a/lib/gpu/geryon/hip_device.h b/lib/gpu/geryon/hip_device.h index d14631fa0f..6692078629 100644 --- a/lib/gpu/geryon/hip_device.h +++ b/lib/gpu/geryon/hip_device.h @@ -84,7 +84,7 @@ class UCL_Device { /// Specify whether profiling (device timers) will be used for the device (yes=true) /** No-op for CUDA and HIP **/ inline void configure_profiling(const bool profiling_on) {} - + /// Set the CUDA device to the specified device number /** 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 diff --git a/lib/gpu/geryon/nvd_device.h b/lib/gpu/geryon/nvd_device.h index 5875dfaa7c..1b2e5b8c77 100644 --- a/lib/gpu/geryon/nvd_device.h +++ b/lib/gpu/geryon/nvd_device.h @@ -98,7 +98,7 @@ class UCL_Device { /// Specify whether profiling (device timers) will be used for the device (yes=true) /** No-op for CUDA and HIP **/ inline void configure_profiling(const bool profiling_on) {} - + /// Set the CUDA device to the specified device number /** 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 @@ -309,9 +309,9 @@ class UCL_Device { /// For compatability with OCL API inline int auto_set_platform(const enum UCL_DEVICE_TYPE type=UCL_GPU, - const std::string vendor="", - const int ndevices=-1, - const int first_device=-1) + const std::string vendor="", + const int ndevices=-1, + const int first_device=-1) { return set_platform(0); } private: diff --git a/lib/gpu/geryon/ocl_device.h b/lib/gpu/geryon/ocl_device.h index ceb0ded745..506ee1fe91 100644 --- a/lib/gpu/geryon/ocl_device.h +++ b/lib/gpu/geryon/ocl_device.h @@ -388,7 +388,7 @@ class UCL_Device { cl_platform_id _cl_platforms[20]; // OpenCL IDs for all platforms cl_context _context; // Context used for accessing the device std::vector _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 cl_device_id _cl_device; // OpenCL ID for current device std::vector _cl_devices; // OpenCL IDs for all devices diff --git a/lib/gpu/geryon/ucl_basemat.h b/lib/gpu/geryon/ucl_basemat.h index 3f478c4b4e..349873d59b 100644 --- a/lib/gpu/geryon/ucl_basemat.h +++ b/lib/gpu/geryon/ucl_basemat.h @@ -78,7 +78,7 @@ class UCL_BaseMat { #ifndef _OCL_MAT return false; #else - + #if defined(GERYON_FORCE_SHARED_MAIN_MEM_ON) return true; #elif defined(GERYON_FORCE_SHARED_MAIN_MEM_OFF) @@ -89,7 +89,7 @@ class UCL_BaseMat { sizeof(cl_device_id),&device,NULL)); return _shared_mem_device(device); #endif - + #endif }