Hardware
Hardware-detection functions AlgorithmEntry auto-populates its
cpu_type/ram_bytes/gpu_type/cuda_version/cudnn_version fields
from. See navix.benchmarks (this package's __init__.py) for the
full design.
cpu_type()
Reads the CPU's model name.
Returns:
| Name | Type | Description |
|---|---|---|
str |
str
|
|
str
|
|
|
str
|
|
|
str
|
any other platform, or if the platform-specific lookup fails. |
cuda_version()
Reads the CUDA version jaxlib is running on.
Returns:
| Type | Description |
|---|---|
Optional[str]
|
Optional[str]: The installed |
Optional[str]
|
package version (the same one a |
Optional[str]
|
pins), falling back to |
Optional[str]
|
that package isn't found. |
Optional[str]
|
GPU. |
cudnn_version()
Reads the cuDNN version jaxlib is running on.
Returns:
| Type | Description |
|---|---|
Optional[str]
|
Optional[str]: The installed |
Optional[str]
|
version (the same one a |
Optional[str]
|
|
gpu_type()
Reads the specific GPU model JAX is running on.
Returns:
| Type | Description |
|---|---|
Optional[str]
|
Optional[str]: The GPU model (e.g. distinguishes an SXM from a |
Optional[str]
|
PCIe variant of the same chip), or |
Optional[str]
|
on a GPU. |
ram_bytes()
Reads total system RAM.
Returns:
| Name | Type | Description |
|---|---|---|
int |
int
|
Total system RAM, in bytes. POSIX-only (Linux/macOS). |