oneapi-src / oneapi-src/oneAPI-samples
An exception is caught for vector add.
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 1.2k
- Forks
- 745
- PR merge metrics
- No merged PRs in 30d
Description
Hi,
I created a DPC++ console project on VS 2022, as by default it will load vector-add sample.
There's no issue when I run the project directly on IDE as it says "Vector Add successfully completed on device" but when I target the release option so that it can create an executable file that issue appears.


If there's no issue on IDE, the release version should not throw any issue ? Any reply highly appreciated.
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.
Research direction
Reproduce the DPC++ vector-add console project in Visual Studio 2022, comparing an IDE run with the Release target and generated executable. Start with the exception shown in the attached screenshots; the issue is resolved when the Release executable completes vector addition successfully without throwing it.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- build-system, hpc
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100