mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
[ROCm] hipify needs specific header mappings (#160675)
Fixes #160579. Pull Request resolved: https://github.com/pytorch/pytorch/pull/160675 Approved by: https://github.com/ScottTodd, https://github.com/jeffdaily Co-authored-by: Jeff Daily <jeff.daily@amd.com>
This commit is contained in:
committed by
PyTorch MergeBot
parent
eb0eaa67e1
commit
4051b42c29
@ -607,9 +607,12 @@ CUDA_INCLUDE_MAP = collections.OrderedDict(
|
||||
"channel_descriptor.h",
|
||||
("hip/channel_descriptor.h", CONV_INCLUDE, API_RUNTIME),
|
||||
),
|
||||
("device_functions.h", ("hip/device_functions.h", CONV_INCLUDE, API_RUNTIME)),
|
||||
("driver_types.h", ("hip/driver_types.h", CONV_INCLUDE, API_RUNTIME)),
|
||||
("library_types.h", ("hip/library_types.h", CONV_INCLUDE, API_RUNTIME)),
|
||||
('include "device_functions.h', ('include "hip/device_functions.h', CONV_INCLUDE, API_RUNTIME)),
|
||||
('include <device_functions.h', ('include <hip/device_functions.h', CONV_INCLUDE, API_RUNTIME)),
|
||||
('include "driver_types.h', ('include "hip/driver_types.h', CONV_INCLUDE, API_RUNTIME)),
|
||||
('include <driver_types.h', ('include <hip/driver_types.h', CONV_INCLUDE, API_RUNTIME)),
|
||||
('include "library_types.h', ('include "hip/library_types.h', CONV_INCLUDE, API_RUNTIME)),
|
||||
('include <library_types.h', ('include <hip/library_types.h', CONV_INCLUDE, API_RUNTIME)),
|
||||
("cuComplex.h", ("hip/hip_complex.h", CONV_INCLUDE, API_RUNTIME)),
|
||||
("cuda_fp16.h", ("hip/hip_fp16.h", CONV_INCLUDE, API_RUNTIME)),
|
||||
("cuda_bf16.h", ("hip/hip_bf16.h", CONV_INCLUDE, API_RUNTIME)),
|
||||
|
Reference in New Issue
Block a user