# Bad cuda error when using torch.matmul with CUDA 10.0

**URL:** <https://discuss.pytorch.org/t/bad-cuda-error-when-using-torch-matmul-with-cuda-10-0/36558>\
**Category:** Uncategorized\
**Created:** [February 6, 2019, 11:52pm UTC](https://discuss.pytorch.org/t/bad-cuda-error-when-using-torch-matmul-with-cuda-10-0/36558 "2019-02-06T23:52:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tibbyholic](https://discuss.pytorch.org/letter_avatar_proxy/v4/letter/t/59ef9b/32.png) [@tibbyholic](https://discuss.pytorch.org/u/tibbyholic)\
**Post date:** [February 6, 2019, 11:52pm UTC](https://discuss.pytorch.org/t/bad-cuda-error-when-using-torch-matmul-with-cuda-10-0/36558/1 "2019-02-06T23:52:28Z")

</div>

My computer refuses to perform the matmul operation. I have torch1.0, python 2.7, CUDA 10.0 and GPUs are Nvidia 2080 RTX.

 ![2080rtx_error](https://discuss.pytorch.org/uploads/default/original/2X/b/b0fd4112948c8c1a56ebf4b22012ba3df042db24.png)

---

<div class="post-metadata">

**Author:** ![ptrblck](https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/ptrblck/32/1823_2.png) [@ptrblck](https://discuss.pytorch.org/u/ptrblck)\
**Post date:** [February 7, 2019, 7:22am UTC](https://discuss.pytorch.org/t/bad-cuda-error-when-using-torch-matmul-with-cuda-10-0/36558/2 "2019-02-07T07:22:23Z")

</div>

Is your code working on the CPU?  
If so, could you share a (small) executable code snippet so that we could have a look?

---

<div class="post-metadata">

**Author:** ![tibbyholic](https://discuss.pytorch.org/letter_avatar_proxy/v4/letter/t/59ef9b/32.png) [@tibbyholic](https://discuss.pytorch.org/u/tibbyholic)\
**Post date:** [February 7, 2019, 8:50pm UTC](https://discuss.pytorch.org/t/bad-cuda-error-when-using-torch-matmul-with-cuda-10-0/36558/3 "2019-02-07T20:50:47Z")

</div>

Hey thanks for help. I actually figured out how to fix it. I had to compile pytorch for Cuda 10.0. it was currently configured for Cuda 9.0
