llnl / llnl/CARE

File and line number or macro layer in care/util.h?

Open
#104 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
32
Forks
7
Avg merge
19h 49m
Merged PRs (30d)
14

Description

Some of the functions in care/util.h take a file and line number so if there is a GPU API error code returned, we can print out the file and line number of the calling location. Should all the functions take a file and line number? Do we want to provide a macro layer that injects the file and line number for users? Do we want to wait until c++ 20 when source_location becomes a thing (https://en.cppreference.com/w/cpp/utility/source_location)?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reading care/util.h and inventory which functions currently accept file and line information. Resolve whether the API should standardize those parameters, add a macro layer, or wait for C++20 source_location; done means documenting and implementing a settled direction, with validation for the affected GPU error-reporting paths.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
backend-api-design
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.