-
Notifications
You must be signed in to change notification settings - Fork 406
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
Documentation updates: touch up BUILD.md, add Spack.md #3187
Conversation
jjwilke
commented
Jul 15, 2020
- Adds some extra details based on user feedback in the build documentation
- Fixes some missing/incorrect options in the BUILD.md
- Moves the README from kokkos-spack into kokkos since kokkos-space will no longer be maintained
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider using
```cmake
```
and
```bash
```
when appropriate
Spack.md
Outdated
We can verify we have `+volta70` and `+wrapper`, e.g. | ||
|
||
### Spack Environments | ||
The encouraged method of using Spack is to use environments. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That sentence sound weird to me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reworded.
99e6091
to
c82e505
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM but I think another pair of eyes on this would not hurt.
````cmake | ||
cmake_policy(SET CMP0074 NEW) | ||
```` | ||
If building in-tree, there is no `find_package`. You can use `add_subdirectory(kokkos)` with the Kokkos source and again just link with `target_link_libraries(Kokkos::kokkos)`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would mention examples/cmake_build_installed
and examples/cmake_build_in_tree
here as examples.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added. I had to clean up these examples as well (redundant with another PR, but we should fix the comments in these examples ASAP).
Spack.md
Outdated
kokkos: | ||
variants: +hip amd_gpu_arch=vega900 | ||
```` | ||
Note: there is currently no support for the `hipcc` compiler in Spack. Spack currently does not have rules for building the compiler nor can an already installe version be added to Spack as a valid compiler. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note: there is currently no support for the `hipcc` compiler in Spack. Spack currently does not have rules for building the compiler nor can an already installe version be added to Spack as a valid compiler. | |
Note: there is currently no support for the `hipcc` compiler in Spack. Spack currently does not have rules for building the compiler nor can an already installed version be added to Spack as a valid compiler. |
That's not entirely true. You could trick Spack
into thinking that hipcc
is a clang
compiler. That's what I did when testing the spack
module. I am not sure if we want to mention any of this at all.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just took out that language for now. It's probably not even worth mentioning since hipcc is an advanced use case at this point.
### Spack Environments | ||
The encouraged way to use Spack is with Spack environments. | ||
Rather than installing packages one-at-a-time, you add packages to an environment. | ||
After adding all packages, you concretize and install them all. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make sure you have downloaded [Spack](https://github.com/spack/spack) and added it to your path. | ||
The easiest way to do this is often (depending on your SHELL): | ||
````bash | ||
> source spack/share/spack/setup-env.sh |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think spack will complain if you don't also set SPACK_ROOT in your environment variables
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reworded to make this clearer. Thanks for pointing this out.
d16bb17
to
180aebf
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. I don't care much in which pull request we clean the examples, though.
I'm adding BLOCKS PROMOTION to this. We should really fix these docs before next release. |
Since we changed |
add_subdirectory(${Example_SOURCE_DIR}/../.. ${Example_BINARY_DIR}/kokkos) | ||
|
||
add_executable(example cmake_example.cpp) | ||
add_executable(example cmake_example.cpp foo.f) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add_executable(example cmake_example.cpp foo.f) | |
add_executable(example cmake_example.cpp) |
We don't use Fortran
here anymore.