Skip to content
Open
Show file tree
Hide file tree
Changes from all 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
2 changes: 1 addition & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# ATen XPU sources

file(GLOB device_cpp "sycl/*.cpp" "sycl/*.sycl")
file(GLOB device_cpp "sycl/*.cpp" "sycl/*.sycl" "sycl/kernels/moe/*.cpp")
file(GLOB host_cpp "./*.cpp" "./*.cc")

list(APPEND ATen_XPU_CPP_SRCS ${host_cpp})
Expand Down
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

activations not only serve for MoE, better leave it unchanged.
Beside I'd prefer only put customized cutlass code under src/sycl/kernels/, and leave pure SYCL code outside

Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
#include <sycl/sycl.hpp>
#include <vector>

#include "MemoryAccess.h"
#include "SYCLHelpers.h"
#include "Utils.h"
#include "../../MemoryAccess.h"
#include "../../SYCLHelpers.h"
#include "../../Utils.h"

#define DPCPP_CONSTANT __attribute__((opencl_constant))

Expand Down Expand Up @@ -232,3 +232,4 @@ void gelu_and_mul(at::Tensor& out, at::Tensor& input) {
}
return;
}

Loading