[Cmake-commits] CMake branch, next, updated. v3.5.2-1491-g2f506a4

Brad King brad.king at kitware.com
Thu May 19 10:53:10 EDT 2016


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "CMake".

The branch, next has been updated
       via  2f506a44da9ed33a5c87f89b2d48ae389ef85a2e (commit)
       via  cc95001b1cc20367ea127ea09ea91960782e65a3 (commit)
      from  7b6f89791a8ba71d242669ed2496264cbbf2776a (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=2f506a44da9ed33a5c87f89b2d48ae389ef85a2e
commit 2f506a44da9ed33a5c87f89b2d48ae389ef85a2e
Merge: 7b6f897 cc95001
Author:     Brad King <brad.king at kitware.com>
AuthorDate: Thu May 19 10:53:09 2016 -0400
Commit:     CMake Topic Stage <kwrobot at kitware.com>
CommitDate: Thu May 19 10:53:09 2016 -0400

    Merge topic 'FindCUDA-fp16' into next
    
    cc95001b FindCUDA: Detect and report FP16 support


https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=cc95001b1cc20367ea127ea09ea91960782e65a3
commit cc95001b1cc20367ea127ea09ea91960782e65a3
Author:     Boris Fomitchev <bfomitchev at nvidia.com>
AuthorDate: Thu May 12 20:17:07 2016 -0700
Commit:     Brad King <brad.king at kitware.com>
CommitDate: Thu May 19 10:52:32 2016 -0400

    FindCUDA: Detect and report FP16 support
    
    Reviewed-by: James Bigler <jamesbigler at gmail.com>

diff --git a/Modules/FindCUDA.cmake b/Modules/FindCUDA.cmake
index 4f52d25..0718116 100644
--- a/Modules/FindCUDA.cmake
+++ b/Modules/FindCUDA.cmake
@@ -264,6 +264,7 @@
 #   CUDA_VERSION_MINOR    -- The minor version.
 #   CUDA_VERSION
 #   CUDA_VERSION_STRING   -- CUDA_VERSION_MAJOR.CUDA_VERSION_MINOR
+#   CUDA_HAS_FP16         -- Whether a short float (float16,fp16) is supported.
 #
 #   CUDA_TOOLKIT_ROOT_DIR -- Path to the CUDA Toolkit (defined if not set).
 #   CUDA_SDK_ROOT_DIR     -- Path to the CUDA SDK.  Use this to find files in the
@@ -683,6 +684,12 @@ find_path(CUDA_TOOLKIT_INCLUDE
 find_path(CUDA_TOOLKIT_INCLUDE device_functions.h)
 mark_as_advanced(CUDA_TOOLKIT_INCLUDE)
 
+if (CUDA_VERSION VERSION_GREATER "7.0" OR EXISTS "${CUDA_TOOLKIT_INCLUDE}/cuda_fp16.h")
+  set(CUDA_HAS_FP16 TRUE)
+else()
+  set(CUDA_HAS_FP16 FALSE)
+endif()
+
 # Set the user list of include dir to nothing to initialize it.
 set (CUDA_NVCC_INCLUDE_ARGS_USER "")
 set (CUDA_INCLUDE_DIRS ${CUDA_TOOLKIT_INCLUDE})

-----------------------------------------------------------------------

Summary of changes:
 Modules/FindCUDA.cmake |    7 +++++++
 1 file changed, 7 insertions(+)


hooks/post-receive
-- 
CMake


More information about the Cmake-commits mailing list