Skip to content

Commit

Permalink
Refactor the codegen directory, pt 16 (pytorch#2492)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: pytorch#2492

- Migrate `embedding_bounds_check_*` over to `codegen/utils`

Reviewed By: spcyppt

Differential Revision: D55950626

fbshipit-source-id: bd1931fd7af69c68651e76eac2f75dd231756951
  • Loading branch information
q10 authored and facebook-github-bot committed Apr 11, 2024
1 parent 704159f commit 818a26f
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions fbgemm_gpu/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -564,7 +564,7 @@ set(fbgemm_gpu_sources_static_cpu
codegen/training/forward/embedding_forward_split_cpu.cpp
codegen/inference/embedding_forward_quantized_host_cpu.cpp
codegen/training/backward/embedding_backward_dense_host_cpu.cpp
codegen/embedding_bounds_check_host_cpu.cpp
codegen/utils/embedding_bounds_check_host_cpu.cpp
src/merge_pooled_embedding_ops/merge_pooled_embedding_ops_cpu.cpp
src/permute_pooled_embedding_ops/permute_pooled_embedding_function.cpp
src/permute_pooled_embedding_ops/permute_pooled_embedding_ops_cpu.cpp
Expand All @@ -590,7 +590,7 @@ if(NOT FBGEMM_CPU_ONLY)
list(APPEND fbgemm_gpu_sources_static_cpu
codegen/inference/embedding_forward_quantized_host.cpp
codegen/training/backward/embedding_backward_dense_host.cpp
codegen/embedding_bounds_check_host.cpp
codegen/utils/embedding_bounds_check_host.cpp
src/memory_utils/memory_utils.cpp
src/memory_utils/memory_utils_ops.cpp
src/memory_utils/memory_utils_ops_cpu.cpp
Expand Down Expand Up @@ -628,7 +628,7 @@ endif()

if(NOT FBGEMM_CPU_ONLY)
set(fbgemm_gpu_sources_static_gpu
codegen/embedding_bounds_check.cu
codegen/utils/embedding_bounds_check.cu
codegen/inference/embedding_forward_quantized_split_lookup.cu
src/memory_utils/memory_utils.cu
src/memory_utils/memory_utils_ops.cu
Expand Down
2 changes: 1 addition & 1 deletion fbgemm_gpu/test/sparse/utils_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#include <ATen/ATen.h>
#include <torch/torch.h>

#include "deeplearning/fbgemm/fbgemm_gpu/include/fbgemm_gpu/sparse_ops_utils.h"
#include "fbgemm_gpu/sparse_ops_utils.h"

using namespace testing;

Expand Down
2 changes: 1 addition & 1 deletion fbgemm_gpu/test/tbe/utils/cpu_kernel_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
#include <ATen/ATen.h>
#include <ATen/AccumulateType.h>

#include "deeplearning/fbgemm/fbgemm_gpu/include/fbgemm_gpu/embedding_forward_split_cpu.h"
#include "fbgemm_gpu/embedding_common.h"
#include "fbgemm_gpu/embedding_forward_split_cpu.h"
#include "torch/types.h" // @manual=//caffe2:torch-cpp-cpu

TEST(CpuKernelTest, csr2csc_test) {
Expand Down

0 comments on commit 818a26f

Please sign in to comment.