oneapi-src / oneapi-src/oneAPI-samples

An exception is caught for vector add.

Open
#865 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

question
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.
image
image

If there's no issue on IDE, the release version should not throw any issue ? Any reply highly appreciated.

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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.