Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ROCm support? #101

Open
jin-eld opened this issue Oct 6, 2023 · 0 comments
Open

ROCm support? #101

jin-eld opened this issue Oct 6, 2023 · 0 comments

Comments

@jin-eld
Copy link

jin-eld commented Oct 6, 2023

Hi,

did anyone get this to work on AMD GPUs on Linux? I tried various things, including the hipconvonvert scripts, but there seems to be some mismatch between headers and the compilation runs into errors like (the actual output is a lot longer):

/mnt/ssd/Segment-and-Track-Anything/Pytorch-Correlation-extension/Correlation_Module/correlation_hip_kernel.hip:4:17: error: expected namespace name
using namespace torch;
                ^
/mnt/ssd/Segment-and-Track-Anything/Pytorch-Correlation-extension/Correlation_Module/correlation_hip_kernel.hip:25:11: error: use of undeclared identifier 'RestrictPtrTraits'
    const TensorAcc4R rInput1,
          ^
/mnt/ssd/Segment-and-Track-Anything/Pytorch-Correlation-extension/Correlation_Module/correlation_hip_kernel.hip:14:55: note: expanded from macro 'TensorAcc4R'
#define TensorAcc4R PackedTensorAccessor32<scalar_t,4,RestrictPtrTraits>
                                                      ^
/mnt/ssd/Segment-and-Track-Anything/Pytorch-Correlation-extension/Correlation_Module/correlation_hip_kernel.hip:26:11: error: use of undeclared identifier 'RestrictPtrTraits'
    const TensorAcc4R rInput2,
          ^
/mnt/ssd/Segment-and-Track-Anything/Pytorch-Correlation-extension/Correlation_Module/correlation_hip_kernel.hip:14:55: note: expanded from macro 'TensorAcc4R'
#define TensorAcc4R PackedTensorAccessor32<scalar_t,4,RestrictPtrTraits>
                                                      ^
/mnt/ssd/Segment-and-Track-Anything/Pytorch-Correlation-extension/Correlation_Module/correlation_hip_kernel.hip:27:5: error: use of undeclared identifier 'RestrictPtrTraits'
    TensorAcc5R output,
    ^

This is on torch 2.0.1+rocm5.4.2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant