minerva icon indicating copy to clipboard operation
minerva copied to clipboard

automatically detect GPU compute capability and set -arch correctly

Open hjk41 opened this issue 9 years ago • 2 comments

Currently we set -arch sm_35, which leads to "invalid device function" in older GPUs. There seems to be some effort in automatically detecting GPU compute capability and set it correctly: https://public.kitware.com/Bug/view.php?id=11767

Let's see if we can use it in our CMakeLists.txt

hjk41 avatar Jun 15 '15 02:06 hjk41

https://github.com/PointCloudLibrary/pcl/blob/master/cmake/pcl_find_cuda.cmake https://github.com/Itseez/opencv/blob/master/cmake/OpenCVDetectCUDA.cmake

futurely avatar Jul 23 '15 06:07 futurely

Thanks for the info.

@minjie, @yutian, could you check if we can use this?

On Thu, Jul 23, 2015 at 2:19 PM, futurely [email protected] wrote:

https://github.com/PointCloudLibrary/pcl/blob/master/cmake/pcl_find_cuda.cmake https://github.com/Itseez/opencv/blob/master/cmake/OpenCVDetectCUDA.cmake

— Reply to this email directly or view it on GitHub https://github.com/dmlc/minerva/issues/35#issuecomment-123990565.

HONG Chuntao System Research Group Microsoft Research Asia

hjk41 avatar Jul 23 '15 08:07 hjk41