Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support for profiling #5

Open
amigalemming opened this issue Aug 31, 2014 · 1 comment
Open

support for profiling #5

amigalemming opened this issue Aug 31, 2014 · 1 comment

Comments

@amigalemming
Copy link

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.

@robeverest
Copy link
Owner

I wasn't able to reproduce this problem myself, but I suspect it has to do with autoconf not being run properly. I've just pushed a commit which changes the build-type to Custom and works the same was as the cuda package. Hopefully, this should fix the problem. Let me know if it works or not.

We have avoided using pkgconfig because it doesn't always find where cuda was installed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants