Skip to content

Why the Tigre module doesn't use GPU fully 100%? #488

@TianSong1991

Description

@TianSong1991

Expected Behavior

I test the python demo d07_Algorithms02.py and I run my own data. I hope the fdk and sart algorithm use the GPU 100%, but I see the GPU only use 5%-7%.

Actual Behavior

When I add gpuids in tigre, but it doesn't work well. It only use GPU only 5%-7%.

Code to reproduce the problem (If applicable)

listGpuNames = gpu.getGpuNames()
if len(listGpuNames) == 0:
    print("Error: No gpu found")
else:
    for id in range(len(listGpuNames)):
        print("{}: {}".format(id, listGpuNames[id]))

gpuids = gpu.getGpuIds(listGpuNames[0])
print(gpuids)

imgSIRT, qualitySIRT = algs.sirt(
    projections,
    geo,
    angles,
    2,
    lmbda=lmbda,
    lmbda_red=lambdared,
    verbose=verbose,
    Quameasopts=qualmeas,
    computel2=True,
    gpuids = gpuids,
)
imgSART, qualitySART = algs.sart(
    projections,
    geo,
    angles,
    2,
    lmbda=lmbda,
    lmbda_red=lambdared,
    verbose=verbose,
    Quameasopts=qualmeas,
    computel2=True,
gpuids = gpuids,
)

Specifications

  • MATLAB/python version: python
  • OS: win 10
  • CUDA version:11.7

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions