Skip to content

Commit

Permalink
move cmake change to Pytorch
Browse files Browse the repository at this point in the history
Signed-off-by: xinan.lin <[email protected]>
  • Loading branch information
etaf committed Jun 21, 2024
1 parent b1ce17f commit 0b2393a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
7 changes: 0 additions & 7 deletions src/aten/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,17 +1,10 @@
# ATen XPU sources

file(GLOB xpu_cpp "*.cpp")
file(GLOB xpu_h "*.h")
file(GLOB xpu_sycl "sycl/*.cpp")

list(APPEND ATen_XPU_CPP_SRCS ${xpu_cpp})
list(APPEND ATen_XPU_SYCL_SRCS ${xpu_sycl})

set(ATen_XPU_CPP_SRCS ${ATen_XPU_CPP_SRCS} PARENT_SCOPE)
set(ATen_XPU_SYCL_SRCS ${ATen_XPU_SYCL_SRCS} PARENT_SCOPE)

set(INCLUDE_DIR_FOR_TORCH "${CMAKE_BINARY_DIR}/aten/src/ATen/xpu" )
file(MAKE_DIRECTORY ${INCLUDE_DIR_FOR_TORCH})
foreach(HEADER ${xpu_h})
file(COPY ${HEADER} DESTINATION ${INCLUDE_DIR_FOR_TORCH})
endforeach()
2 changes: 1 addition & 1 deletion src/aten/EmptyTensor.cpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#define TORCH_ASSERT_NO_OPERATORS
#include "EmptyTensor.h"
#include <ATen/Context.h>
#include <ATen/EmptyTensor.h>
#include <c10/core/Allocator.h>
#include <c10/core/DeviceGuard.h>
#include <ATen/xpu/EmptyTensor.h>

namespace at::detail {

Expand Down

0 comments on commit 0b2393a

Please sign in to comment.