Skip to content

Commit

Permalink
fixes for intel/llvm
Browse files Browse the repository at this point in the history
Changes:
* Added a hack to fix 2035 in oneDNN
* Commented out oneapi specific location for libOpenCL.so
* Added hacks in torch-xpu-ops to WA dpc++ and intel/llvm behavior differences

Above are hacks which need proper resolutions.

See: oneapi-src/oneDNN#2035
Requires: intel/torch-xpu-ops#635
Signed-off-by: Dmitry Rogozhkin <[email protected]>
  • Loading branch information
dvrogozh committed Aug 14, 2024
1 parent 7f40ac9 commit c8ede69
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion aten/src/ATen/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ if(USE_XPU)
list(APPEND ATen_XPU_SRCS ${mkldnn_xpu_cpp})
list(APPEND ATen_XPU_DEPENDENCY_LIBS xpu_mkldnn)

list(APPEND ATen_XPU_DEPENDENCY_LIBS ${OCL_LIBRARY})
#list(APPEND ATen_XPU_DEPENDENCY_LIBS ${OCL_LIBRARY})
list(APPEND ATen_XPU_INCLUDE ${CMAKE_CURRENT_SOURCE_DIR}/native/mkldnn/xpu)
list(APPEND ATen_XPU_INCLUDE ${CMAKE_CURRENT_SOURCE_DIR}/native/mkldnn/xpu/detail)
list(APPEND ATen_XPU_INCLUDE ${PROJECT_SOURCE_DIR}/third_party/ideep/mkl-dnn/include)
Expand Down
2 changes: 1 addition & 1 deletion caffe2/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1011,7 +1011,7 @@ if(USE_XPU)

# ATen XPU implementation
set(TORCH_XPU_OPS_DIR ${TORCH_ROOT}/third_party/torch-xpu-ops)
set(TORCH_XPU_OPS_REPO_URL https://github.com/intel/torch-xpu-ops.git)
set(TORCH_XPU_OPS_REPO_URL https://github.com/dvrogozh/torch-xpu-ops.git)
file(READ "${TORCH_ROOT}/third_party/xpu.txt" TORCH_XPU_OPS_COMMIT)
string(REGEX REPLACE "\n$" "" TORCH_XPU_OPS_COMMIT "${TORCH_XPU_OPS_COMMIT}")
if(NOT EXISTS "${TORCH_XPU_OPS_DIR}/.git")
Expand Down
2 changes: 1 addition & 1 deletion third_party/ideep
Submodule ideep updated 1 files
+1 −1 mkl-dnn
2 changes: 1 addition & 1 deletion third_party/xpu.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
35bea25e2e09b92067349a75cd0858a485c444fe
intel-llvm

0 comments on commit c8ede69

Please sign in to comment.