Remove hardcoded warp_size == 32 assumption from PME GPU
[alexxy/gromacs.git] / src / gromacs / gpu_utils / ocl_compiler.cpp
index 3107ac8f1b2b442c17c3510467bd3e1a0e97f216..190448ec4383272edc1c4191bb2ab719ed23ffe3 100644 (file)
@@ -248,19 +248,7 @@ getSourceRootPath(const std::string &sourceRelativePath)
     return Path::normalize(sourceRootPath);
 }
 
-/*!  \brief Get the warp size reported by device
- *
- *  This is platform implementation dependant and seems to only work on the Nvidia and AMD platforms!
- *  Nvidia reports 32, AMD for GPU 64. Ignore the rest
- *
- *  \param  context   Current OpenCL context
- *  \param  deviceId OpenCL device with the context
- *  \return cl_int value of the warp size
- *
- * \throws InternalError if an OpenCL error was encountered
- */
-static size_t
-getWarpSize(cl_context context, cl_device_id deviceId)
+size_t getWarpSize(cl_context context, cl_device_id deviceId)
 {
     cl_int      cl_error;
     const char *warpSizeKernel = "__kernel void test(__global int* test){test[get_local_id(0)] = 0;}";