-
Notifications
You must be signed in to change notification settings - Fork 99
Half matrix and components #1708
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
502df54
c53ab57
6f14b13
476cf28
7cc8c6f
a85f462
7b4829c
561f173
036485a
b29a8f6
2be0042
8d3e4b5
b2fa55a
8910f83
0421615
8190bf6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -32,6 +32,12 @@ option(GINKGO_BUILD_DOC "Generate documentation" OFF) | |
| option(GINKGO_FAST_TESTS "Reduces the input size for a few tests known to be time-intensive" OFF) | ||
| option(GINKGO_TEST_NONDEFAULT_STREAM "Uses non-default streams in CUDA and HIP tests" OFF) | ||
| option(GINKGO_MIXED_PRECISION "Instantiate true mixed-precision kernels (otherwise they will be conversion-based using implicit temporary storage)" OFF) | ||
| option(GINKGO_ENABLE_HALF "Enable the use of half precision" ON) | ||
| # We do not support MSVC. SYCL will come later | ||
| if(MSVC OR GINKGO_BUILD_SYCL) | ||
| message(STATUS "HALF is not supported in MSVC, and later support in SYCL") | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This needs to be rephrased since I really don't know what you mean by "and later support in SYCL". There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, we will enable the support from #1710 |
||
| set(GINKGO_ENABLE_HALF OFF CACHE BOOL "Enable the use of half precision" FORCE) | ||
| endif() | ||
| option(GINKGO_SKIP_DEPENDENCY_UPDATE | ||
| "Do not update dependencies each time the project is rebuilt" ON) | ||
| option(GINKGO_WITH_CLANG_TIDY "Make Ginkgo call `clang-tidy` to find programming issues." OFF) | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| // SPDX-FileCopyrightText: 2017 - 2024 The Ginkgo authors | ||
| // | ||
| // SPDX-License-Identifier: BSD-3-Clause | ||
|
|
||
| #ifndef GKO_COMMON_CUDA_HIP_BASE_THRUST_MACRO_HPP_ | ||
| #define GKO_COMMON_CUDA_HIP_BASE_THRUST_MACRO_HPP_ | ||
|
|
||
| // although thrust provides the similar thing, these macro are only defined when | ||
| // they supported. Thus, we need to provide our own macro to make it work with | ||
| // the old version | ||
| #ifdef THRUST_CUB_WRAPPED_NAMESPACE | ||
| #define GKO_THRUST_NAEMSPACE_PREFIX namespace THRUST_CUB_WRAPPED_NAMESPACE { | ||
| #define GKO_THRUST_NAEMSPACE_POSTFIX } | ||
| #define GKO_THRUST_QUALIFIER ::THRUST_CUB_WRAPPED_NAMESPACE::thrust | ||
| #else | ||
| #define GKO_THRUST_NAEMSPACE_PREFIX | ||
| #define GKO_THRUST_NAEMSPACE_POSTFIX | ||
| #define GKO_THRUST_QUALIFIER ::thrust | ||
| #endif // THRUST_CUB_WRAPPED_NAMESPACE | ||
|
|
||
|
|
||
| #endif // GKO_COMMON_CUDA_HIP_BASE_THRUST_MACRO_HPP_ |
Uh oh!
There was an error while loading. Please reload this page.