add guards for __CUDA_ARCH__ >= 530 (#891)

* add guards for sm>=70

* drop guard to 530
This commit is contained in:
ptrblck 2023-03-28 14:47:10 -07:00 committed by GitHub
parent 87070b6d51
commit 1eef5c3cf1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -89,7 +89,7 @@ struct multiplies {
}
};
#if defined(__CUDA_ARCH__)
#if defined(__CUDA_ARCH__) && __CUDA_ARCH__ >= 530
/// Partial specializations needed when __CUDA_NO_HALF2_OPERATORS__ is set
template<>
struct plus<__half2> {