From 90e9233a4d940fac0b809aa56f2556210618821b Mon Sep 17 00:00:00 2001 From: sneaxiy <32832641+sneaxiy@users.noreply.github.com> Date: Thu, 20 Jan 2022 10:15:59 +0800 Subject: [PATCH] remove if !defined(WIN32) (#39058) --- paddle/fluid/operators/gelu_op.cu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paddle/fluid/operators/gelu_op.cu b/paddle/fluid/operators/gelu_op.cu index 17f74464a81..73694471799 100644 --- a/paddle/fluid/operators/gelu_op.cu +++ b/paddle/fluid/operators/gelu_op.cu @@ -24,7 +24,7 @@ namespace operators { #ifdef __NVCC__ template static __device__ __forceinline__ float FP32FastTanh(float x) { -#if __CUDA_ARCH__ >= 750 && CUDA_VERSION >= 11000 && !defined(_WIN32) +#if __CUDA_ARCH__ >= 750 && CUDA_VERSION >= 11000 if (FastMode) { float y; asm("tanh.approx.f32 %0,%1; \n\t" : "=f"(y) : "f"(x)); -- GitLab