---
metadata:
  - name: generator
    content: Diplodoc Platform v5.52.0
alternate:
  - https://catboost.ai/docs/en/concepts/python-reference_utils_get_gpu_device_count.md
  - href: en/concepts/python-reference_utils_get_gpu_device_count.md
    type: text/markdown
    title: Markdown version
  - href: ../llms.txt
    type: text/markdown
    title: llms.txt
---
> **Documentation Index:** Fetch the complete configuration index at https://catboost.ai/docs/en/llms.txt

# get_gpu_device_count

<!-- source: en/_includes/work_src/reusage-python/utils__get-gpu-device-count__desc.md -->
Return the number of available GPU devices.
<!-- endsource: en/_includes/work_src/reusage-python/utils__get-gpu-device-count__desc.md -->


{% note info %}

- The returned value is <q>0</q> if the installed or compiled package does not support training on GPU.
- Use the `CUDA_VISIBLE_DEVICES` environment variable to limit the list of available devices.

{% endnote %}


## Method call format {#call-format}

```python
get_gpu_device_count()
```

## Usage examples {#usage-examples}

```python
from catboost.utils import get_gpu_device_count
print('I see %i GPU devices' % get_gpu_device_count())
```

