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

Build instructions for Linux metion to use gcc<6.1 together with CUDA #2247

Closed
marbre opened this issue Jul 19, 2018 · 6 comments
Closed

Build instructions for Linux metion to use gcc<6.1 together with CUDA #2247

marbre opened this issue Jul 19, 2018 · 6 comments

Comments

@marbre
Copy link
Contributor

marbre commented Jul 19, 2018

The build instructions for Linux metion that a gcc <6.1 hat to be used together with CUDA:

NOTE: If the default gcc on your machine is gcc >= 6.1 and you want to use CUDA, you will have to run cmake by using an older gcc.

I assume this information is outdated since CUDA supports newer gcc versions?

@9prady9
Copy link
Member

9prady9 commented Jul 19, 2018

No, this is still valid. Even CUDA 9.2 doesn't support the latest gcc versions. The latest it is known to work with is 6.1.

https://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html#system-requirements

@9prady9 9prady9 closed this as completed Jul 19, 2018
@marbre
Copy link
Contributor Author

marbre commented Jul 19, 2018

This is simply wrong. Please see the system requirements yourself, it mentions Ubuntu 17.10 with gcc 7.2.0 as well as Fedora 27 with gcc 7.3.1.
With CUDA 9.2, gcc 7.x is supported as stated in the release notes. Therefore, I was curious if there is something special with ArrayFire.

@9prady9
Copy link
Member

9prady9 commented Jul 19, 2018 via email

@9prady9 9prady9 reopened this Jul 19, 2018
@9prady9
Copy link
Member

9prady9 commented Jul 19, 2018

I have updated the build instructions to latest gcc that works with CUDA backend as 7.3.1

@9prady9 9prady9 closed this as completed Jul 19, 2018
@marbre
Copy link
Contributor Author

marbre commented Jul 20, 2018

I normally use a gcc 6.4.0, but just tested with a 7.3.0 and at least ArrayFire compiles (no further testing). Thanks for clarification :)

@9prady9
Copy link
Member

9prady9 commented Jul 20, 2018

Yes, I have updated instructions after building ArrayFire with 7.3.1. Thanks for the update!

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