libocca / occa

Portable and vendor neutral framework for parallel programming on heterogeneous platforms.
https://libocca.org
MIT License
389 stars 82 forks source link

cmake: expose CUDA::cuda_driver dependency in use #738

Closed nsoborin closed 8 months ago

nsoborin commented 8 months ago

Description

Without this, CUDA::cuda_driver target is not linked to libocca during consumption and as a result there is a build problem: libcuda.so cannot be found. This occurs on machines which do not have CUDA lib in default, compiler included directories (e.g. in /lib64)

codecov[bot] commented 8 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (6390b2d) 74.97% compared to head (39fbec1) 74.96%.

Additional details and impacted files [![Impacted file tree graph](https://app.codecov.io/gh/libocca/occa/pull/738/graphs/tree.svg?width=650&height=150&src=pr&token=doaG4c84wZ&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=libocca)](https://app.codecov.io/gh/libocca/occa/pull/738?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=libocca) ```diff @@ Coverage Diff @@ ## development #738 +/- ## =============================================== - Coverage 74.97% 74.96% -0.01% =============================================== Files 298 298 Lines 19486 19486 =============================================== - Hits 14609 14608 -1 - Misses 4877 4878 +1 ``` [see 1 file with indirect coverage changes](https://app.codecov.io/gh/libocca/occa/pull/738/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=libocca)