Skip to content

Compilation with cpu_CMakeLists.txt fails #188

@alashworth

Description

@alashworth

Hi,
there seems to be some missing #ifdef __USE_CPU in filtered_backprojection.cpp. The project does not build from master because several GPU specific functions aren't available.

[build] /home/andrew/workspace/LEAP/src/filtered_backprojection.cpp: In member function ‘bool filteredBackprojection::filterProjections(float*, float*, parameters*, bool)’:
[build] /home/andrew/workspace/LEAP/src/filtered_backprojection.cpp:282:37: error: ‘zeroPadForOffsetScan_GPU’ was not declared in this scope; did you mean ‘zeroPadForOffsetScan’?
[build] 282 | g = zeroPadForOffsetScan_GPU(g, params, g_out);
[build] | ^~~~~~~~~~~~~~~~~~~~~~~~
[build] | zeroPadForOffsetScan
[build] /home/andrew/workspace/LEAP/src/filtered_backprojection.cpp: In member function ‘bool filteredBackprojection::execute(float*, float*, parameters*, bool, bool, bool)’:
[build] /home/andrew/workspace/LEAP/src/filtered_backprojection.cpp:459:41: error: ‘zeroPadForOffsetScan_GPU’ was not declared in this scope; did you mean ‘zeroPadForOffsetScan’?
[build] 459 | g_pad = zeroPadForOffsetScan_GPU(g, params);
[build] | ^~~~~~~~~~~~~~~~~~~~~~~~
[build] | zeroPadForOffsetScan
[build] /home/andrew/workspace/LEAP/src/filtered_backprojection.cpp:505:33: error: ‘cudaFree’ was not declared in this scope
[build] 505 | cudaFree(g_pad);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions