Skip to content

Commit 769d591

Browse files
Merge branch 'main' into kdrozd/div_accuracy
2 parents d8fc982 + 256dc00 commit 769d591

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

cmake/BuildFlags.cmake

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,11 @@ macro(set_build_flags)
5555
# SYCL headers, such as deprecated warnings, even if warned API is not actually used in the program.
5656
# We expect that this issue will be addressed in the later version of DPC++ compiler. To workaround
5757
# the issue we wrap paths to SYCL headers in `-isystem`.
58-
foreach(FLAGS IN LISTS SYCL_INCLUDE_DIR)
59-
list(APPEND SYCL_HOST_FLAGS "-isystem ${FLAGS}")
60-
endforeach()
58+
if(SYCL_COMPILER_VERSION VERSION_LESS 20250300)
59+
foreach(FLAGS IN LISTS SYCL_INCLUDE_DIR)
60+
list(APPEND SYCL_HOST_FLAGS "-isystem ${FLAGS}")
61+
endforeach()
62+
endif()
6163
# Excluding warnings which flood the compilation output
6264
# TODO: fix warnings in the source code and then reenable them in compilation
6365
list(APPEND SYCL_HOST_FLAGS -Wno-sign-compare)

src/ATen/native/xpu/sycl/AdaptiveAveragePooling2dKernels.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -695,15 +695,15 @@ struct AdaptiveAvgPool2dKernelFunctor_cl {
695695
numel_(numel) {}
696696

697697
private:
698+
vec_t* output_;
699+
const vec_t* input_;
698700
int ih_;
699701
int iw_;
700702
int ob_;
701703
int oc_;
702704
int oh_;
703705
int ow_;
704706
int64_t numel_;
705-
const vec_t* input_;
706-
vec_t* output_;
707707
};
708708

709709
#define LAUNCH_AVGPOOL_CHANNEL_LAST_VEC( \

0 commit comments

Comments
 (0)