llnl / llnl/blt

Investigate following DAG for targets for `cuda` and `cuda_runtime`

Open
#490 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug cuda feature User Request
Dominant language
C++
Stars
296
Forks
66
Avg merge
1h 3m
Merged PRs (30d)
1

Description

We have logic in blt_add_library and blt_add_executable that searches the DEPENDS_ON list for our cuda targets. It would clean a lot of inheritance up if we searched the DAG as well. This would remove the requirement that users have to list cuda or cuda_runtime on every target.

A general macro to search the DAG for a given target would be very helpful as well. Something like:

blt_is_target_dependent(TARGET foo DEPENDENCY cuda OUT is_dependent)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the existing CUDA-target handling in blt_add_library and blt_add_executable, focusing on how their DEPENDS_ON lists are searched. Investigate the DAG traversal and the proposed blt_is_target_dependent macro; done should mean CUDA dependencies are found transitively and a reusable target-dependency check is defined.

Written by the indexing model from the issue text.

Assessment

Tech stack
cmake
Domain
build-system
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.