Skip to content

Commit 501631a

Browse files
Set Flags enable_cudnn_frontend default True (PaddlePaddle#76735)
1 parent f82c221 commit 501631a

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

CMakeLists.txt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,13 +352,19 @@ option(WITH_RECORD_BUILDTIME
352352
option(WITH_CUSTOM_DEVICE "Compile with custom device support" OFF)
353353
option(WITH_FLPS "FL PS mode" OFF)
354354
option(WITH_CUDNN_FRONTEND
355-
"Compile with CUDNN Frontend API support (experimental)" OFF)
355+
"Compile with CUDNN Frontend API support (experimental)" ON)
356356
option(WITH_SHARED_IR "Compile PaddlePaddle with SHARED LIB of IR" ON)
357357
option(WITH_NVCC_LAZY
358358
"Compile PaddlePaddle with nvcc lazy mode, used for CI-Inference only."
359359
ON)
360360
option(BUILD_WHL_PACKAGE "Build paddle whl package after compilation" ON)
361361

362+
if(WIN32)
363+
set(WITH_CUDNN_FRONTEND
364+
OFF
365+
CACHE BOOL "" FORCE)
366+
endif()
367+
362368
if(WITH_RECORD_BUILDTIME)
363369
set_property(
364370
GLOBAL

paddle/common/flags.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1615,11 +1615,11 @@ PHI_DEFINE_EXPORTED_bool(npu_storage_format, false, "");
16151615
* CUDNNv8 related FLAG
16161616
* Name: enable_cudnn_frontend
16171617
* Since Version: 2.5.0
1618-
* Value Range: bool, default=false
1618+
* Value Range: bool, default=true
16191619
* Example:
16201620
* Note: Enable CUDNNv8 Frontend API for CUDNN kernels.
16211621
*/
1622-
PHI_DEFINE_EXPORTED_bool(enable_cudnn_frontend, false, "");
1622+
PHI_DEFINE_EXPORTED_bool(enable_cudnn_frontend, true, "");
16231623

16241624
/**
16251625
* CUDNNv8 related FLAG

paddle/scripts/paddle_build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3338,7 +3338,7 @@ function parallel_test() {
33383338
}
33393339

33403340
function nv_test() {
3341-
export FLAGS_enable_cudnn_frontend=0
3341+
export FLAGS_enable_cudnn_frontend=1
33423342
ctest -R "conv" --output-on-failure --timeout 150
33433343
}
33443344

0 commit comments

Comments
 (0)