Skip to content

Commit

Permalink
metal lowbit kernels: replace ATEN by USE_ATEN
Browse files Browse the repository at this point in the history
Differential Revision: D65253390

Pull Request resolved: pytorch#1263
  • Loading branch information
manuelcandales authored and sunjiweiswift committed Nov 25, 2024
1 parent b6bcd08 commit e6dc429
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
* This file is generated by gen_metal_shader_lib.py
*/
#ifdef ATEN
#ifdef USE_ATEN
using namespace at::native::mps;
#else
#include <torchao/experimental/kernels/mps/src/OperationUtils.h>
Expand Down
2 changes: 1 addition & 1 deletion torchao/experimental/kernels/mps/src/lowbit.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#include <fstream>
#include <sstream>

#ifdef ATEN
#ifdef USE_ATEN
#include <ATen/native/mps/OperationUtils.h>
using namespace at::native::mps;
inline void finalize_block(MPSStream* mpsStream) {}
Expand Down
2 changes: 1 addition & 1 deletion torchao/experimental/ops/mps/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
name="torchao_mps_ops",
sources=["register.mm"],
include_dirs=[os.getenv("TORCHAO_ROOT")],
extra_compile_args=["-DATEN=1"],
extra_compile_args=["-DUSE_ATEN=1"],
),
],
cmdclass={"build_ext": BuildExtension},
Expand Down

0 comments on commit e6dc429

Please sign in to comment.