diff --git a/paddle/fluid/platform/dynload/cusparse.h b/paddle/fluid/platform/dynload/cusparse.h index 3f41f6978d059d35fc99a17b5bba52c7a0dfaf89..98841949676e471ae40c841a1e25aad06b0b3d64 100644 --- a/paddle/fluid/platform/dynload/cusparse.h +++ b/paddle/fluid/platform/dynload/cusparse.h @@ -41,6 +41,7 @@ extern void *cusparse_dso_handle; }; \ extern DynLoad__##__name __name +#ifndef _WIN32 #if CUDA_VERSION >= 11020 #define CUSPARSE_ROUTINE_EACH(__macro) \ __macro(cusparseCreate); \ @@ -57,6 +58,7 @@ extern void *cusparse_dso_handle; CUSPARSE_ROUTINE_EACH(DECLARE_DYNAMIC_LOAD_CUSPARSE_WRAP); #endif +#endif #undef DECLARE_DYNAMIC_LOAD_CUSPARSE_WRAP } // namespace dynload