Skip to content

Commit e75e4a5

Browse files
superbobryjax authors
authored andcommitted
Do not require a capsule to have a specific name in the CUDA plugin
This aligns the implementation in the plugin with the one in xla_client. PiperOrigin-RevId: 629724197
1 parent cbee909 commit e75e4a5

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

jaxlib/cuda_plugin_extension.cc

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,6 @@ namespace xla {
3636
namespace {
3737
Status RegisterCustomCallTarget(const PJRT_Api* c_api, nb::str fn_name,
3838
nb::capsule fn, int api_version) {
39-
static const char* const kName = "xla._CUSTOM_CALL_TARGET";
40-
if (std::string_view(fn.name()) != kName) {
41-
return InvalidArgument(
42-
"Argument to RegisterCustomCallTargetRegistry was not a "
43-
"xla._CUSTOM_CALL_TARGET capsule.");
44-
}
45-
4639
if (c_api->extension_start == nullptr) {
4740
return Unimplemented("The plugin does not have extension.");
4841
}

0 commit comments

Comments
 (0)