Split canDetectGpus()
[alexxy/gromacs.git] / src / gromacs / gpu_utils / gpu_utils_ocl.cpp
index a2173ad75035561655d3c160f7856e0ca7c85d50..8c695549f636f585416b68ec43a647758d57b78a 100644 (file)
@@ -316,9 +316,7 @@ static ocl_vendor_id_t get_vendor_id(char *vendor_name)
     return OCL_VENDOR_UNKNOWN;
 }
 
-
-//! This function is documented in the header file
-bool canDetectGpus(std::string *errorMessage)
+bool isGpuDetectionFunctional(std::string *errorMessage)
 {
     cl_uint numPlatforms;
     cl_int  status       = clGetPlatformIDs(0, nullptr, &numPlatforms);
@@ -345,7 +343,6 @@ bool canDetectGpus(std::string *errorMessage)
     return foundPlatform;
 }
 
-//! This function is documented in the header file
 void findGpus(gmx_gpu_info_t *gpu_info)
 {
     cl_uint         ocl_platform_count;
@@ -518,7 +515,6 @@ void findGpus(gmx_gpu_info_t *gpu_info)
     sfree(ocl_platform_ids);
 }
 
-//! This function is documented in the header file
 void get_gpu_device_info_string(char *s, const gmx_gpu_info_t &gpu_info, int index)
 {
     assert(s);
@@ -563,7 +559,6 @@ bool areAllGpuDevicesFromAmd(const gmx_gpu_info_t &gpuInfo)
     return result;
 }
 
-//! This function is documented in the header file
 void init_gpu(const gmx_device_info_t *deviceInfo)
 {
     assert(deviceInfo);
@@ -586,7 +581,6 @@ void init_gpu(const gmx_device_info_t *deviceInfo)
     }
 }
 
-//! This function is documented in the header file
 gmx_device_info_t *getDeviceInfo(const gmx_gpu_info_t &gpu_info,
                                  int                   deviceId)
 {
@@ -597,7 +591,6 @@ gmx_device_info_t *getDeviceInfo(const gmx_gpu_info_t &gpu_info,
     return &gpu_info.gpu_dev[deviceId];
 }
 
-//! This function is documented in the header file
 size_t sizeof_gpu_dev_info()
 {
     return sizeof(gmx_device_info_t);