Provide "dummy" backend for unit-testing application's L0 API usage
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 25/100
- Issue type
- Feature
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- cpp
- Domain
- api, testing-qa
Research direction
The issue links collectd's gpu_sysman_test.c; read that mock implementation first to understand the requested Sysman coverage. Then identify the Level Zero frontend/backend entry point, which the issue does not name, and determine how an environment selection could produce deterministic synthetic values or an error on the Nth call; done means L0 API users can exercise both paths without duplicating mocks.
Written by the indexing model from the issue text.
Description
In my own project, I've mocked every Sysman call used, so that I can verify code handling properly any of them working or erroring: https://github.com/collectd/collectd/blob/collectd-6.0/src/gpu_sysman_test.c
But it would be nice to avoid every L0 API user needing to duplicate the same work. Could level-zero frontend provide a dummy backend, that depending on e.g. env variable, either returns synthetized value according to some pre-determined formula (so that this value can be validated), or an error for the Nth Sysman call?
- Dominant language
- C++
- Stars
- 335
- Forks
- 140
- Avg merge
- 12h 32m
- Merged PRs (30d)
- 5
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from oneapi-src/level-zero
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
oneapi-src/level-zero#495 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
oneapi-src/level-zero#485 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 76/100
oneapi-src/level-zero#447 · 2 comments ·
-
Difficulty 5/5 Over a week Newbie friendliness 30/100
oneapi-src/level-zero#482 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
oneapi-src/level-zero#419 ·
All issues in oneapi-src/level-zero
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
AXERA-TECH/ax-llm#77 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
games-on-whales/wolf#509 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
bug-unconfirmed
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
NVIDIA/cuda-samples#453 ·