# Trouble loading sample data in SlicerAutoscoperM

**URL:** <https://discourse.slicer.org/t/trouble-loading-sample-data-in-slicerautoscoperm/41003>\
**Category:** SlicerAutoscoperM\
**Created:** [January 9, 2025, 12:38am UTC](https://discourse.slicer.org/t/trouble-loading-sample-data-in-slicerautoscoperm/41003 "2025-01-09T00:38:36Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![jcfr](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jcfr/32/17825_2.png) [@jcfr](https://discourse.slicer.org/u/jcfr)\
**Post date:** [February 6, 2025, 3:32pm UTC](https://discourse.slicer.org/t/trouble-loading-sample-data-in-slicerautoscoperm/41003/10 "2025-02-06T15:32:57Z")

</div>

@Lauren_Welte do you happen to have two video cards on your system ?

Related:

- [WIndows 10 is now handling the gpu selection](https://discourse.slicer.org/t/windows-10-is-now-handling-the-gpu-selection/13064)
- [https://www.makeuseof.com/windows-10-choose-preferred-gpu/](https://www.makeuseof.com/windows-10-choose-preferred-gpu/)

## Details

Since issues happen with both backend, we need to first confirm there are two video card and then ensure the NVIDIA one is used.

### CUDA Backend

Based on the screenshot shared above \[1\], the code triggering the error when using the CUDA backend can be inspected here (line 400):

> <https://github.com/BrownBiomechanics/Autoscoper/blob/dd32d16390c71b46641173aac9ad311ead9dfd39/libautoscoper/src/View.cpp#L396-L405>

The problematic call seems to be related to `cudaGraphicsGLRegisterBuffer`\[2\], note that is expected to be supported and not marked as deprecated.

### OpenCL backend

Based on the screenshot shared above \[3\], the code triggering the error when using the OpenCL backend can be inspected here (line 739):

> <https://github.com/BrownBiomechanics/Autoscoper/blob/dd32d16390c71b46641173aac9ad311ead9dfd39/libautoscoper/src/gpu/opencl/OpenCL.cpp#L732-L742>

* * *

1. [Trouble loading sample data in SlicerAutoscoperM - #6 by Lauren\_Welte](https://discourse.slicer.org/t/trouble-loading-sample-data-in-slicerautoscoperm/41003/6) 

2. [CUDA Runtime API :: CUDA Toolkit Documentation](https://docs.nvidia.com/cuda/cuda-runtime-api/group __CUDART__ OPENGL.html#group __CUDART__ OPENGL_1g0fd33bea77ca7b1e69d1619caf44214b) 

3. [Trouble loading sample data in SlicerAutoscoperM - #4 by Lauren\_Welte](https://discourse.slicer.org/t/trouble-loading-sample-data-in-slicerautoscoperm/41003/4)

---

_[View the full topic](https://discourse.slicer.org/t/trouble-loading-sample-data-in-slicerautoscoperm/41003)._
