Skip to content
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions cmake/BuildFlags.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,11 @@ macro(set_build_flags)
# SYCL headers, such as deprecated warnings, even if warned API is not actually used in the program.
# We expect that this issue will be addressed in the later version of DPC++ compiler. To workaround
# the issue we wrap paths to SYCL headers in `-isystem`.
foreach(FLAGS IN LISTS SYCL_INCLUDE_DIR)
list(APPEND SYCL_HOST_FLAGS "-isystem ${FLAGS}")
endforeach()
if(__INTEL_LLVM_COMPILER LESS 20250300)
foreach(FLAGS IN LISTS SYCL_INCLUDE_DIR)
list(APPEND SYCL_HOST_FLAGS "-isystem ${FLAGS}")
endforeach()
endif()
# Excluding warnings which flood the compilation output
# TODO: fix warnings in the source code and then reenable them in compilation
list(APPEND SYCL_HOST_FLAGS -Wno-sign-compare)
Expand Down
4 changes: 2 additions & 2 deletions src/ATen/native/xpu/sycl/AdaptiveAveragePooling2dKernels.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -695,15 +695,15 @@ struct AdaptiveAvgPool2dKernelFunctor_cl {
numel_(numel) {}

private:
vec_t* output_;
const vec_t* input_;
int ih_;
int iw_;
int ob_;
int oc_;
int oh_;
int ow_;
int64_t numel_;
const vec_t* input_;
vec_t* output_;
};

#define LAUNCH_AVGPOOL_CHANNEL_LAST_VEC( \
Expand Down
Loading