mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
[caffe2/utils] Add explicit rule to avoid package boundary violation (#60677)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/60677 Add a rule to wrap conversions.h and depend on that, rather than relying on a glob which violates package boundaries. Test Plan: `buck2 build fbcode//caffe2/caffe2:caffe2_core` Reviewed By: mzlee Differential Revision: D29370841 fbshipit-source-id: d4dd383eb8457d4f5118574e34e6f17c32fde647
This commit is contained in:
committed by
Facebook GitHub Bot
parent
41c380e649
commit
03de807d81
@ -1,16 +1,5 @@
|
||||
#pragma once
|
||||
|
||||
#include <caffe2/core/types.h>
|
||||
|
||||
#ifdef __CUDA_ARCH__
|
||||
// Proxy for including cuda_fp16.h, because common_gpu.h
|
||||
// has necessary diagnostic guards.
|
||||
#include <caffe2/core/common_gpu.h>
|
||||
#endif
|
||||
#ifdef __HIP_DEVICE_COMPILE__
|
||||
#include <caffe2/core/hip/common_gpu.h>
|
||||
#endif
|
||||
|
||||
// See Note [hip-clang differences to hcc]
|
||||
|
||||
#if defined(__CUDA_ARCH__) || defined(__HIP_DEVICE_COMPILE__) || \
|
||||
|
Reference in New Issue
Block a user