rocm_jax/jaxlib/gpu/linalg.cc
Dan Foreman-Mackey 5bc17f7ec3 Remove the unused cu_cholesky_update kernel in favor of the FFI version.
This kernel wasn't allowed in export, so no backwards compatibility period is required. Even so, the FFI kernels were added 6 months ago.

PiperOrigin-RevId: 724359996
2025-02-07 08:48:15 -08:00

41 lines
1.2 KiB
C++

/* Copyright 2021 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.
==============================================================================*/
#include "nanobind/nanobind.h"
#include "jaxlib/gpu/linalg_kernels.h"
#include "jaxlib/gpu/vendor.h"
#include "jaxlib/kernel_nanobind_helpers.h"
namespace jax {
namespace JAX_GPU_NAMESPACE {
namespace {
namespace nb = nanobind;
NB_MODULE(_linalg, m) {
m.def("registrations", []() {
nb::dict dict;
dict[JAX_GPU_PREFIX "_lu_pivots_to_permutation"] =
EncapsulateFfiHandler(LuPivotsToPermutation);
dict[JAX_GPU_PREFIX "_cholesky_update_ffi"] =
EncapsulateFunction(CholeskyUpdateFfi);
return dict;
});
}
} // namespace
} // namespace JAX_GPU_NAMESPACE
} // namespace jax