# GPU available but not using

**URL:** https://discourse.scverse.org/t/gpu-available-but-not-using/1211
**Category:** scvi-tools
**Created:** [March 9, 2023, 1:26am UTC](https://discourse.scverse.org/t/gpu-available-but-not-using/1211 "2023-03-09T01:26:48Z")
**Posts on this page:** 1
**Showing post:** 6

<div class="post-metadata">

### Author: ![adamgayoso](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.scverse.org/adamgayoso/32/100_2.png) [@adamgayoso](https://discourse.scverse.org/u/adamgayoso)
#### Post date: [March 10, 2023, 3:52am UTC](https://discourse.scverse.org/t/gpu-available-but-not-using/1211/6 "2023-03-10T03:52:25Z")

</div>

> [@karenlawwc](#):
>
> I already filtered the adata so that protein and RNA share the same cells. The full traceback are below. Somehow the index of the adata is messed up and is throwing the error?

Issue will be fixed in the next release, but also check out my response here:

> [@Questions about running differential expression](https://discourse.scverse.org/t/questions-about-running-differential-expression/1137/9):
>
> Ok I understand the issue. In the notebook you shared you can replace adata.obsm["protein\_expression"] = mdata["adt"].layers["counts"].A.copy() with adata.obsm["protein\_expression"] = mdata["adt"].to\_df("counts") The issue arises due to the first line giving a numpy array, so our library generates integer based index for the protein names. This causes an issue with accessing a pandas series in your traceback. We will push a fix soon. In the meantime, the recommended workflow is to use data…

---

_[View the full topic](https://discourse.scverse.org/t/gpu-available-but-not-using/1211)._
