File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 2222project_name = f"jax-rocm{ rocm_version } -plugin"
2323package_name = f"jax_rocm{ rocm_version } _plugin"
2424
25+ # Extract ROCm version from the `ROCM_PATH` environment variable.
26+ default_rocm_path = "/opt/rocm"
27+ rocm_path = os .getenv ("ROCM_PATH" , default_rocm_path )
28+ rocm_detected_version = rocm_path .split ('-' )[- 1 ] if '-' in rocm_path else "unknown"
29+
2530def load_version_module (pkg_path ):
2631 spec = importlib .util .spec_from_file_location (
2732 'version' , os .path .join (pkg_path , 'version.py' ))
@@ -43,7 +48,7 @@ def has_ext_modules(self):
4348 name = project_name ,
4449 version = __version__ ,
4550 cmdclass = _cmdclass ,
46- description = "JAX Plugin for AMD GPUs" ,
51+ description = f "JAX Plugin for AMD GPUs (ROCm: { rocm_detected_version } ) " ,
4752 long_description = "" ,
4853 long_description_content_type = "text/markdown" ,
4954 author = "Ruturaj4" ,
Original file line number Diff line number Diff line change 2121project_name = f"jax-rocm{ rocm_version } -pjrt"
2222package_name = f"jax_plugins.xla_rocm{ rocm_version } "
2323
24+ # Extract ROCm version from the `ROCM_PATH` environment variable.
25+ default_rocm_path = "/opt/rocm"
26+ rocm_path = os .getenv ("ROCM_PATH" , default_rocm_path )
27+ rocm_detected_version = rocm_path .split ('-' )[- 1 ] if '-' in rocm_path else "unknown"
28+
2429def load_version_module (pkg_path ):
2530 spec = importlib .util .spec_from_file_location (
2631 'version' , os .path .join (pkg_path , 'version.py' ))
@@ -41,7 +46,7 @@ def load_version_module(pkg_path):
4146setup (
4247 name = project_name ,
4348 version = __version__ ,
44- description = "JAX XLA PJRT Plugin for AMD GPUs" ,
49+ description = f "JAX XLA PJRT Plugin for AMD GPUs (ROCm: { rocm_detected_version } ) " ,
4550 long_description = "" ,
4651 long_description_content_type = "text/markdown" ,
4752 author = "Ruturaj4" ,
You can’t perform that action at this time.
0 commit comments