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

Remove :cuda_runtime and :rocm_runtime targets #19541

Merged
merged 1 commit into from
Nov 21, 2024
Merged

Conversation

copybara-service[bot]
Copy link

@copybara-service copybara-service bot commented Nov 20, 2024

Remove :cuda_runtime and :rocm_runtime targets

  • The remaining GetRuntimeVersion and GetFuncBySymbol functions get moved into the executors - the only place where they are needed.
  • For CUDA is also create an overload of cuda::ToStatus which can convert a CUDA runtime error (cudaError_t) into an absl::Status.
  • I also had to adjust the RocmKernel and CudaKernel tests which were using GetFuncBySymbol directly. Now they rely on LoadKernel from the executors.

@copybara-service copybara-service bot changed the title Remove :cuda_runtime and :rocm_runtime target Remove :cuda_runtime and :rocm_runtime targets Nov 20, 2024
- The remaining `GetRuntimeVersion` and `GetFuncBySymbol` functions get moved into the executors - the only place where they are needed.
- For CUDA is also create an overload of `cuda::ToStatus` which can convert a CUDA runtime error (`cudaError_t`) into an `absl::Status`.
- I also had to adjust the `RocmKernel` and `CudaKernel` tests which were using `GetFuncBySymbol` directly. Now they rely on `LoadKernel` from the executors.

PiperOrigin-RevId: 698720699
@copybara-service copybara-service bot merged commit 8f5a11e into main Nov 21, 2024
@copybara-service copybara-service bot deleted the test_698351772 branch November 21, 2024 11:50
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

Successfully merging this pull request may close these issues.

1 participant