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

switch to rocThrust for thrust/cub APIs (#25602) #25620

Closed
wants to merge 1 commit into from

Conversation

bddppq
Copy link
Contributor

@bddppq bddppq commented Sep 4, 2019

Summary:
Pull Request resolved: #25602

Enable rocThrust with hipCUB and rocPRIM for ROCm. They are the ROCm implementations of the thrust and cub APIs and replace the older hip-thrust and cub-hip packages going forward. ROCm 2.5 is the first release to contain the new packages as an option, as of 2.6 they will be the only available option.

Add hipification rules to correctly hipify thrust::cuda to thrust::hip and cub:: to hipcub:: going forward. Add hipification rules to hipify specific cub headers to the general hipcub header.

Infrastructure work to correctly find, include and link against the new packages. Add the macro definition to choose the HIP backend to Thrust.

Since include chains are now a little different from CUDA's Thrust, add includes for functionality used where applicable.

Skip four tests that fail with the new rocThrust for now.
Pull Request resolved: #21864

Differential Revision: D16940768

Summary:
Pull Request resolved: pytorch#25602

Enable rocThrust with hipCUB and rocPRIM for ROCm. They are the ROCm implementations of the thrust and cub APIs and replace the older hip-thrust and cub-hip packages going forward. ROCm 2.5 is the first release to contain the new packages as an option, as of 2.6 they will be the only available option.

Add hipification rules to correctly hipify thrust::cuda to thrust::hip and cub:: to hipcub:: going forward. Add hipification rules to hipify specific cub headers to the general hipcub header.

Infrastructure work to correctly find, include and link against the new packages. Add the macro definition to choose the HIP backend to Thrust.

Since include chains are now a little different from CUDA's Thrust, add includes for functionality used where applicable.

Skip four tests that fail with the new rocThrust for now.
Pull Request resolved: pytorch#21864

Differential Revision: D16940768

fbshipit-source-id: c7c79ed1332ba4441d6d1da0f8dc507506f96626
@pytorchbot pytorchbot added caffe2 module: build Build system issues module: ci Related to continuous integration module: cuda Related to torch.cuda, and CUDA support in general module: operators module: rocm AMD GPU support for Pytorch module: sparse Related to torch.sparse labels Sep 4, 2019
zdevito pushed a commit to zdevito/ATen that referenced this pull request Sep 4, 2019
Summary:
Pull Request resolved: pytorch/pytorch#25620

Pull Request resolved: pytorch/pytorch#25602

Enable rocThrust with hipCUB and rocPRIM for ROCm. They are the ROCm implementations of the thrust and cub APIs and replace the older hip-thrust and cub-hip packages going forward. ROCm 2.5 is the first release to contain the new packages as an option, as of 2.6 they will be the only available option.

Add hipification rules to correctly hipify thrust::cuda to thrust::hip and cub:: to hipcub:: going forward. Add hipification rules to hipify specific cub headers to the general hipcub header.

Infrastructure work to correctly find, include and link against the new packages. Add the macro definition to choose the HIP backend to Thrust.

Since include chains are now a little different from CUDA's Thrust, add includes for functionality used where applicable.

Skip four tests that fail with the new rocThrust for now.
Pull Request resolved: pytorch/pytorch#21864

Reviewed By: xw285cornell

Differential Revision: D16940768

Pulled By: bddppq

fbshipit-source-id: 3dba8a8f1763dd23d89eb0dd26d1db109973dbe5
@facebook-github-bot
Copy link
Contributor

@bddppq merged this pull request in 4fe8571.

@bddppq bddppq deleted the export-D16940768 branch September 8, 2019 08:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
caffe2 Merged module: build Build system issues module: ci Related to continuous integration module: cuda Related to torch.cuda, and CUDA support in general module: rocm AMD GPU support for Pytorch module: sparse Related to torch.sparse
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants