Intel® oneAPI Data Parallel C++
Support for Intel® oneAPI DPC++ Compiler, Intel® oneAPI DPC++ Library, Intel® DPC++ Compatibility Tool, and GDB*
Announcements
This community is designed for sharing of public information. Please do not share Intel or third-party confidential information here.
354 Discussions

Exception when trying OneAPÌ Base Toolkit for the first time

clicia
New Contributor I
862 Views

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.

0 Kudos
1 Solution
clicia
New Contributor I
788 Views

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.

 

View solution in original post

7 Replies
MRajesh_intel
Moderator
849 Views

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.

 

 

clicia
New Contributor I
837 Views

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.

MRajesh_intel
Moderator
823 Views

Hi,


We were unable to reproduce this issue on our side. Can you please specify the oneAPI version and Visual studio version?


Regards

Rajesh.


MRajesh_intel
Moderator
806 Views

Hi,


Can you please provide the above mentioned details?


Regards

Rajesh.


clicia
New Contributor I
796 Views

Hi

  • Intel® oneAPI Base Toolkit for Windows* (all tools): version 2021.2
  • Visual Studio 2019: version 16.10

Thank you.

clicia
New Contributor I
789 Views

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.

 

MRajesh_intel
Moderator
770 Views

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



Reply