Skip to content

Commit 1eef5c3

Browse files
authored
add guards for __CUDA_ARCH__ >= 530 (PaddlePaddle#891)
* add guards for sm>=70 * drop guard to 530
1 parent 87070b6 commit 1eef5c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/cutlass/functional.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ struct multiplies {
8989
}
9090
};
9191

92-
#if defined(__CUDA_ARCH__)
92+
#if defined(__CUDA_ARCH__) && __CUDA_ARCH__ >= 530
9393
/// Partial specializations needed when __CUDA_NO_HALF2_OPERATORS__ is set
9494
template<>
9595
struct plus<__half2> {

0 commit comments

Comments
 (0)