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

Update installation guide #86

Closed
rileyjmurray opened this issue Apr 17, 2024 · 0 comments · Fixed by #93
Closed

Update installation guide #86

rileyjmurray opened this issue Apr 17, 2024 · 0 comments · Fixed by #93

Comments

@rileyjmurray
Copy link
Contributor

rileyjmurray commented Apr 17, 2024

The README and web docs should have an installation guide, and should mention the examples folder.

Note that RandBLAS might be header-only, but if it's configured to use OpenMP then builds can still fail. For example, gcc and g++ on macOS are symlinked to system clang/clang++, which doesn't have OpenMP:

(base) s1104997ca:build rjmurr$ gcc -v
Apple clang version 15.0.0 (clang-1500.3.9.4)
Target: arm64-apple-darwin23.4.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin

So if you want to use OpenMP on macOS then you need to install clang from homebrew:

(base) s1104997ca:build rjmurr$ clang -v
Homebrew clang version 17.0.6
Target: arm64-apple-darwin23.4.0
Thread model: posix
InstalledDir: /opt/homebrew/opt/llvm/bin

From there, you need to run export CC=clang and export CXX=clang++ before running CMake (or otherwise tell CMake to use these compilers).

@rileyjmurray rileyjmurray changed the title Create installation guide Update installation guide Jun 4, 2024
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 a pull request may close this issue.

1 participant