rocm_jax/jaxlib/gpu_plugin_extension.h
Dan Foreman-Mackey 593143e17e Deduplicate some GPU plugin definition code.
The `jaxlib/cuda_plugin_extension.cc` and `jaxlib/rocm_plugin_extension.cc` files were nearly identical so this change consolidates the shared implementation into a single target.

PiperOrigin-RevId: 704785926
2024-12-10 11:32:06 -08:00

28 lines
886 B
C++

/* Copyright 2024 The JAX 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 JAXLIB_GPU_PLUGIN_EXTENSION_H_
#define JAXLIB_GPU_PLUGIN_EXTENSION_H_
#include "nanobind/nanobind.h"
namespace xla {
void BuildGpuPluginExtension(nanobind::module_& m);
} // namespace xla
#endif // JAXLIB_GPU_PLUGIN_EXTENSION_H_