- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dear all,
I installed OneAPI base toolkit and Visual Studio 2019 (communit) on a laptop with Windows 10. I'm trying to run some samples using the OneAPI command prompt.
The first example I tried to run was the vector-add. Compilation seems to work, but the execution returns the following error:
An exception is caught while adding two vectors.
NMAKE : fatal error U1077: '.\vector-add-usm.exe' : return code '0xc0000409'
Stop.
This appears for both the buffered and the USM version. Are there any recommendations to work around this issue?
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I saw that there is an update of oneAPI Base Toolkit to version 2021.3.
After reinstalling the new version the problem no longer appears.
Thank you for all attention.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
After creating the vector-add project in your specified directory (for USM):
1) Build the program using the following 'nmake' command:
nmake -f Makefile.win build_usm
2) Run the program using:
nmake -f Makefile.win run_usm
(if you instead use run, the error occurs)
Please refer to the README.md file in your vector-add project and let us know if you have any issues.
Regards
Rajesh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Rajesh,
The problem persists.
I will specify the step by step I followed:
1) Open oneAPI command prompt for Intel 64 for Visual Studio 2019
2) Type oneapi-cli
3) Create a project (sample language: cpp; Sample: Base: Vector Add)
4) Go to project folder
5) Type: nmake -f Makefile.win build_usm
6) Type: nmake -f Makefile.win run_usm
The output for commands 5 and 6 is below:
C:\Temp\30-vector-add>nmake -f Makefile.win build_usm
Microsoft (R) Program Maintenance Utility Version 14.29.30037.0
Copyright (C) Microsoft Corporation. All rights reserved.
dpcpp -O2 -EHsc -Zi -o vector-add-usm.exe src/vector-add-usm.cpp
C:\Temp\30-vector-add>nmake -f Makefile.win run_usm
Microsoft (R) Program Maintenance Utility Version 14.29.30037.0
Copyright (C) Microsoft Corporation. All rights reserved.
vector-add-usm.exe
An exception is caught while adding two vectors.
NMAKE : fatal error U1077: '.\vector-add-usm.exe' : return code '0xc0000409'
Stop.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
We were unable to reproduce this issue on our side. Can you please specify the oneAPI version and Visual studio version?
Regards
Rajesh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Can you please provide the above mentioned details?
Regards
Rajesh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi
- Intel® oneAPI Base Toolkit for Windows* (all tools): version 2021.2
- Visual Studio 2019: version 16.10
Thank you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I saw that there is an update of oneAPI Base Toolkit to version 2021.3.
After reinstalling the new version the problem no longer appears.
Thank you for all attention.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Thanks for the confirmation!
As this issue has been resolved, we will no longer respond to this thread. If you require any additional assistance from Intel, please start a new thread. Any further interaction in this thread will be considered community only.
Have a Good day.
Regards
Rajesh

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page