# Specify in rasa to access CPU

**URL:** <https://forum.rasa.com/t/specify-in-rasa-to-access-cpu/22630>\
**Category:** Rasa Open Source\
**Created:** [December 19, 2019, 9:17am UTC](https://forum.rasa.com/t/specify-in-rasa-to-access-cpu/22630 "2019-12-19T09:17:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![akanksha](https://avatars.discourse-cdn.com/v4/letter/a/b4bc9f/32.png) [@akanksha](https://forum.rasa.com/u/akanksha)\
**Post date:** [December 19, 2019, 9:17am UTC](https://forum.rasa.com/t/specify-in-rasa-to-access-cpu/22630/1 "2019-12-19T09:17:56Z")

</div>

I am running an instance of rasa on my machine, it is using all the GPUs available. Is there any way to tell rasa that it should use only CPU and not “GPU”? Also, is there a way to tell rasa which GPU it should use from the available ones?

when i am trying to run rasa, it is giving me this error as my 1 GPU is already in use because of other instance of rasa. However my GPU 2 is free.

**error:** tensorflow/stream\_executor/cuda/cuda\_driver.cc:175] Check failed: err == cudaSuccess || err == cudaErrorInvalidValue Unexpected CUDA error: out of memory Makefile:24: recipe for target ‘run-core’ failed make: \*\*\* [run-core] Aborted (core dumped)

---

<div class="post-metadata">

**Author:** ![Arjaan](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/arjaan/32/5754_2.png) [@Arjaan](https://forum.rasa.com/u/Arjaan)\
**Post date:** [January 15, 2020, 1:52am UTC](https://forum.rasa.com/t/specify-in-rasa-to-access-cpu/22630/2 "2020-01-15T01:52:30Z")

</div>

Hi @akanksha,

Rasa is not specifying what GPUs to use when it it uses Tensorflow. It will always use whatever GPUs are available.

If you want to control what GPUs are being used, the best practice is to set the environment variable `CUDA_VISIBLE_DEVICES`.

These 2 references are very good to get more details:

- [CUDA Pro Tip: Control GPU Visibility with CUDA\_VISIBLE\_DEVICES](https://devblogs.nvidia.com/cuda-pro-tip-control-gpu-visibility-cuda_visible_devices/)
- [Stack Overflow solution](https://stackoverflow.com/a/39661999/5480536)
