Skip to content

support for profiling #5

@amigalemming

Description

@amigalemming

When I compile a program with profiling I get linker errors like these:

/cabal/lib/x86_64-linux-ghc-7.8.3/cufft-0.1.0.3/libHScufft-0.1.0.3_p.a(Plan.p_o):(.text+0x5d98): undefined reference to `cufftPlan3d'
/cabal/lib/x86_64-linux-ghc-7.8.3/cufft-0.1.0.3/libHScufft-0.1.0.3_p.a(Plan.p_o):(.text+0x5de1): undefined reference to `cufftPlan3d'
/cabal/lib/x86_64-linux-ghc-7.8.3/cufft-0.1.0.3/libHScufft-0.1.0.3_p.a(Plan.p_o):(.text+0x5e13): undefined reference to `cufftPlan3d'
/cabal/lib/x86_64-linux-ghc-7.8.3/cufft-0.1.0.3/libHScufft-0.1.0.3_p.a(Plan.p_o):(.text+0x5e45): undefined reference to `cufftPlan3d'
/cabal/lib/x86_64-linux-ghc-7.8.3/cufft-0.1.0.3/libHScufft-0.1.0.3_p.a(Plan.p_o):(.text+0x5e7a): undefined reference to `cufftPlan3d'
...

When I change build-type from Configure to Simple in cufft.cabal and add pkgconfig-depends: cufft-6.0 then I can successfully compile with profiling.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions