Skip to content

Commit

Permalink
use c10/macros/cmake_macros.h in fbcode build (pytorch#70851)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: pytorch#70851

This is a step towards OSS/fbcode convergence since OSS uses this file
in both CMake and Bazel.
ghstack-source-id: 147170896

Test Plan: Relying on the extensive CI internal tests for this.

Reviewed By: malfet

Differential Revision: D33299102

fbshipit-source-id: c650dd4755f8d696d5fce81c583d5c73782e3990
(cherry picked from commit 741ca14)
  • Loading branch information
Michael Dagitses authored and pytorchmergebot committed Jan 19, 2022
1 parent bdeec0c commit 661d10a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions c10/cuda/CUDAMacros.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
#pragma once

#ifndef C10_USING_CUSTOM_GENERATED_MACROS

// We have not yet modified the AMD HIP build to generate this file so
// we add an extra option to specifically ignore it.
#ifndef C10_CUDA_NO_CMAKE_CONFIGURE_FILE
#include <c10/cuda/impl/cuda_cmake_macros.h>
#endif // C10_CUDA_NO_CMAKE_CONFIGURE_FILE

#endif

// See c10/macros/Export.h for a detailed explanation of what the function
Expand Down

0 comments on commit 661d10a

Please sign in to comment.