https://github.com/pkestene/embedding_yakl
A Minimalist cmake project embedding yakl
https://github.com/pkestene/embedding_yakl
cmake performance-portability yakl
Last synced: 3 months ago
JSON representation
A Minimalist cmake project embedding yakl
- Host: GitHub
- URL: https://github.com/pkestene/embedding_yakl
- Owner: pkestene
- Created: 2022-10-02T06:58:26.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-10-02T14:08:47.000Z (over 3 years ago)
- Last Synced: 2025-06-04T13:32:49.910Z (about 1 year ago)
- Topics: cmake, performance-portability, yakl
- Language: CMake
- Homepage:
- Size: 6.84 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# A minimal cmake fortran project to demo use of yakl gator
## reference build
This is using yakl main branch : https://github.com/mrnorman/YAKL
```shell
mkdir -p _build/ref
cd _build/ref
cmake -DYAKL_ARCH=CUDA -DENABLE_INSTALL=OFF ../..
make
./src/test_yakl
```
Now turn `ENABLE_INSTALL=ON`, you have the following cmake error:
```text
CMake Error in src/CMakeLists.txt:
Target "test_yakl" INTERFACE_INCLUDE_DIRECTORIES property contains path:
"/home/pkestene/install/yakl/github/embedding_yakl/_build/ref/_deps/yakl_external-build"
which is prefixed in the build directory.
```
## modified build
This is using yakl branch : https://github.com/pkestene/yakl/tree/fix/install_target
```shell
mkdir -p _build/modif
cd _build/ref
cmake -DYAKL_ARCH=CUDA -DENABLE_INSTALL=OFF -DUSE_MODIFIED_YAKL=ON ../..
make
./src/test_yakl
```
Now turn `ENABLE_INSTALL=ON`, no more error, `make install` is working as expected.