Skip to content

Conversation

@iotamudelta
Copy link

Since upstream pytorch#9322 by @petrex , hipification resulted in illegal code.

The legal function cublasHandle_t cublas_handle() was hipified to the
clearly illegal rocblas_handle rocblas_handle(). It should not work and
correctly fails with gcc as the host compiler as it induces an
ambiguity.

Function now hipifies to rocblas_handle rocblashandle()

Fixes long standing issue we've observed in PyTorch when base compiler is gcc.

…egal code.

The legal function cublasHandle_t cublas_handle() was hipified to the
clearly illegal rocblas_handle rocblas_handle(). It should not work and
correctly fails with gcc as the host compiler as it induces an
ambiguity.

Function now hipifies to rocblas_handle rocblashandle()

Fixes long standing issue we've observed in PyTorch when base compiler is gcc.
@iotamudelta
Copy link
Author

@pytorchbot retest this please

1 similar comment
@iotamudelta
Copy link
Author

@pytorchbot retest this please

@iotamudelta
Copy link
Author

@pytorchbot retest this please

@iotamudelta iotamudelta merged commit 2852567 into ROCm:rocblas_handle_fix Oct 22, 2018
@iotamudelta iotamudelta deleted the my_rocblas_handle_fix branch October 22, 2018 23:47
@iotamudelta iotamudelta added the cherry-picked This pull request has been cherry-picked into pytorch/pytorch upstream. label Oct 22, 2018
facebook-github-bot pushed a commit to pytorch/pytorch that referenced this pull request Oct 23, 2018
…re w/ gcc as base compiler (#12957)

Summary:
The legal function cublasHandle_t cublas_handle() was hipified to the
clearly illegal rocblas_handle rocblas_handle(). It should not work and
correctly fails with gcc as the host compiler as it induces an
ambiguity.

Function now hipifies to rocblas_handle rocblashandle()

Fixes long standing issue we've observed in PyTorch when base compiler is gcc.

For attention: bddppq ezyang

Tests on ROCm PyTorch/Caffe2: ROCm#284
Pull Request resolved: #12957

Differential Revision: D10501227

Pulled By: bddppq

fbshipit-source-id: 568cb80801c0d14c9b1b61e3a7db387a5c21acf4
akashveramd pushed a commit that referenced this pull request Jun 13, 2025
# Summary

Add more the possible options in the configs and add a note on how to
get the dependency at the top of the file.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cherry-picked This pull request has been cherry-picked into pytorch/pytorch upstream.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant