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

Enable CUDA compilation when using cmake #83

Merged
merged 4 commits into from
Jun 9, 2017

Conversation

Takishima
Copy link
Contributor

Added CUDA support when using CMake

@Takishima Takishima changed the title enable cuda compilation when using cmake Enable cuda compilation when using cmake Jun 2, 2017
@Takishima Takishima changed the title Enable cuda compilation when using cmake Enable CUDA compilation when using cmake Jun 2, 2017
@uecker
Copy link
Member

uecker commented Jun 7, 2017

This still fails during integrations tests with
"No CMAKE_Fortran_COMPILER could be found."

(you could also remove the changes to .travis.yml for now)

@Takishima
Copy link
Contributor Author

Takishima commented Jun 7, 2017

Hi Martin,
Since I'm quite new to Travis CI, I didn't know I could edit the configuration directly from the repository. I'll play around with it a little more and then add commits when I've fixed everything.

Many thanks for the pointer.

@Takishima
Copy link
Contributor Author

Takishima commented Jun 7, 2017

Ok, so after playing a bit with the Travis-CI build configurations, I think I managed to get it to work.
Small summary of the changes:

  • moved from gcc-4.7 to gcc-4.8 in the mac build (due to the segmentation fault)
  • fixed git-version.sh to work even if no tags are found in the git history
  • had to compile the CBlas library manually for CMake to work
  • changed the order of the libraries stored in the LAPACKE_LIBRARIES variable (cmake/FindLAPACKE.cmake)
  • added a new build case for CMake + CUDA

@uecker uecker merged commit d363623 into mrirecon:cmake-build Jun 9, 2017
uecker pushed a commit that referenced this pull request Jun 9, 2017
enable cuda compilation when using cmake
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

Successfully merging this pull request may close these issues.

2 participants