mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-07-28 15:52:01 +08:00
Remove extra "one" in comment.
This commit is contained in:
parent
b8f8dac4eb
commit
c9394d7a0e
@ -315,7 +315,7 @@ EIGEN_STRONG_INLINE __device__ bool operator >= (const half& a, const half& b) {
|
|||||||
|
|
||||||
// We need to distinguish ‘clang as the CUDA compiler’ from ‘clang as the host compiler,
|
// We need to distinguish ‘clang as the CUDA compiler’ from ‘clang as the host compiler,
|
||||||
// invoked by NVCC’ (e.g. on MacOS). The former needs to see both host and device implementation
|
// invoked by NVCC’ (e.g. on MacOS). The former needs to see both host and device implementation
|
||||||
// of the functions, while the latter can only deal with one one of them.
|
// of the functions, while the latter can only deal with one of them.
|
||||||
#if !defined(EIGEN_HAS_NATIVE_FP16) || (EIGEN_COMP_CLANG && !EIGEN_COMP_NVCC) // Emulate support for half floats
|
#if !defined(EIGEN_HAS_NATIVE_FP16) || (EIGEN_COMP_CLANG && !EIGEN_COMP_NVCC) // Emulate support for half floats
|
||||||
|
|
||||||
#if EIGEN_COMP_CLANG && defined(EIGEN_CUDACC)
|
#if EIGEN_COMP_CLANG && defined(EIGEN_CUDACC)
|
||||||
|
@ -104,7 +104,7 @@ template<> EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE double2 pset1<double2>(const do
|
|||||||
|
|
||||||
// We need to distinguish ‘clang as the CUDA compiler’ from ‘clang as the host compiler,
|
// We need to distinguish ‘clang as the CUDA compiler’ from ‘clang as the host compiler,
|
||||||
// invoked by NVCC’ (e.g. on MacOS). The former needs to see both host and device implementation
|
// invoked by NVCC’ (e.g. on MacOS). The former needs to see both host and device implementation
|
||||||
// of the functions, while the latter can only deal with one one of them.
|
// of the functions, while the latter can only deal with one of them.
|
||||||
#if defined(EIGEN_CUDA_ARCH) || defined(EIGEN_HIP_DEVICE_COMPILE) || (defined(EIGEN_CUDACC) && EIGEN_COMP_CLANG && !EIGEN_COMP_NVCC)
|
#if defined(EIGEN_CUDA_ARCH) || defined(EIGEN_HIP_DEVICE_COMPILE) || (defined(EIGEN_CUDACC) && EIGEN_COMP_CLANG && !EIGEN_COMP_NVCC)
|
||||||
namespace {
|
namespace {
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user