Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prepare move of CUDA compilation functionality
Currently PTX to SASS compilation functions are exported by the target `stream_executor/gpu:asm_compiler`, but implemented in `stream_executor/cuda:cuda_asm_compiler`. I'm trying to clean this up by moving everything into `:cuda_asm_compiler`. Since we can't do atomic cross cutting changes between Jaxlib and XLA, I'm only preparing `:cuda_asm_compiler` as an alias for Jaxlib to depend on. In a subsequent change I will move all the code over. PiperOrigin-RevId: 622885343
- Loading branch information
1 parent
8c5d9c3
commit 0e6088f
Showing
3 changed files
with
39 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
third_party/xla/xla/stream_executor/cuda/cuda_asm_compiler.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/* Copyright 2020 The OpenXLA Authors. | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
==============================================================================*/ | ||
|
||
#ifndef XLA_STREAM_EXECUTOR_CUDA_CUDA_ASM_COMPILER_H_ | ||
#define XLA_STREAM_EXECUTOR_CUDA_CUDA_ASM_COMPILER_H_ | ||
|
||
// TODO(hebecker): Move CUDA-specific functions from asm_compiler.h into here | ||
#include "xla/stream_executor/gpu/asm_compiler.h" // IWYU pragma: export | ||
|
||
#endif // XLA_STREAM_EXECUTOR_CUDA_CUDA_ASM_COMPILER_H_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters