Skip to content

Use only one GPU with Python #329

Answered by tsadakane
Emvlt asked this question in Q&A
Sep 10, 2021 · 2 comments · 3 replies
Discussion options

You must be logged in to vote

@Emvlt Hi.
If you want to use the first GPU,

gpuids = gpu.getGpuIds()
gpuids.devices = [0]  # [1] if you use the second one.
proj = tigre.Ax(head, geo, angles, gpuids=gpuids)

You can find more info in example.py and d22_ListGPUs.py

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@Emvlt
Comment options

Answer selected by Emvlt
Comment options

You must be logged in to vote
2 replies
@Emvlt
Comment options

@AnderBiguri
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants