Skip to content

Commit 05e9df6

Browse files
committed
disable half precision in mingw
1 parent abe9ecf commit 05e9df6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

CMakeLists.txt

+3-3
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ option(GINKGO_FAST_TESTS "Reduces the input size for a few tests known to be tim
4444
option(GINKGO_TEST_NONDEFAULT_STREAM "Uses non-default streams in CUDA and HIP tests" OFF)
4545
option(GINKGO_MIXED_PRECISION "Instantiate true mixed-precision kernels (otherwise they will be conversion-based using implicit temporary storage)" OFF)
4646
option(GINKGO_ENABLE_HALF "Enable the use of half precision" ON)
47-
# We do not support half precision in MSVC.
48-
if(MSVC)
49-
message(STATUS "We do not support half precision in MSVC.")
47+
# We do not support half precision in MSVC and msys2 (MINGW).
48+
if(MSVC OR MINGW)
49+
message(STATUS "We do not support half precision in MSVC and MINGW.")
5050
set(GINKGO_ENABLE_HALF OFF CACHE BOOL "Enable the use of half precision" FORCE)
5151
endif()
5252
option(GINKGO_SKIP_DEPENDENCY_UPDATE

INSTALL.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Ginkgo adds the following additional switches to control what is being built:
2626
Enabling this flag increases the library size, but improves performance of
2727
mixed-precision kernels.
2828
* `-DGINKGO_ENABLE_HALF={ON, OFF}` enable half precision support in Ginkgo, default is `ON`.
29-
It is `OFF` when the compiler is MSVC. If compiling is done with the CUDA backend before CUDA 12.2,
29+
It is `OFF` when the compiler is MSVC or MSYS2 system. If compiling is done with the CUDA backend before CUDA 12.2,
3030
we only support half precision after compute capability 5.3. CUDA 12.2+ compilers waive the compute capbility limitation.
3131
* `-DGINKGO_BUILD_TESTS={ON, OFF}` builds Ginkgo's tests
3232
(will download googletest), default is `ON`.

0 commit comments

Comments
 (0)