Intel® oneAPI DPC++/C++ Compiler
Talk to fellow users of Intel® oneAPI DPC++/C++ Compiler and companion tools like Intel® oneAPI DPC++ Library, Intel® DPC++ Compatibility Tool, and Intel® Distribution for GDB*
595 Discussions

oneAPI 2024.1 vectorization samples do not compile

Theo-at-Stillwater
343 Views

 

F:\Users\tomtz\dev\clones\test\vec_samples>advisor-gui

F:\Users\tomtz\dev\clones\test\vec_samples>icx --version
Intel(R) oneAPI DPC++/C++ Compiler for applications running on Intel(R) 64, Version 2024.1.0 Build 20240308
Copyright (C) 1985-2024 Intel Corporation. All rights reserved.

Intel(R) oneAPI DPC++/C++ Compiler 2024.1.0 (2024.1.0.20240308)
Target: x86_64-pc-windows-msvc
Thread model: posix
InstalledDir: C:\PROGRA~2\Intel\oneAPI\compiler\latest\bin\compiler
Configuration file: C:\PROGRA~2\Intel\oneAPI\compiler\latest\bin\compiler\..\icx.cfg

F:\Users\tomtz\dev\clones\test\vec_samples>vi build.bat
'vi' is not recognized as an internal or external command,
operable program or batch file.

F:\Users\tomtz\dev\clones\test\vec_samples>notepad build.bat

F:\Users\tomtz\dev\clones\test\vec_samples>build.bat baseline

F:\Users\tomtz\dev\clones\test\vec_samples>icx /nologo /O2 /Qstd=c99 /fp:fast /Isrc /Zi /Qopenmp /c src\*.c
F:\Users\tomtz\dev\clones\test\vec_samples\src\Driver.c(54,10): warning: non-portable path to file '"MULTIPLY.H"'; specified path differs
in case from file name on disk [-Wnonportable-include-path]
54 | #include "Multiply.h"
| ^~~~~~~~~~~~
| "MULTIPLY.H"
F:\Users\tomtz\dev\clones\test\vec_samples\src\Driver.c(121,11): error: 'align' attribute takes no more than 1 argument
121 | _declspec(align(ALIGN_BOUNDARY, OFFSET)) FTYPE a[ROW][COLWIDTH];
| ^
F:\Users\tomtz\dev\clones\test\vec_samples\src\Driver.c(122,11): error: 'align' attribute takes no more than 1 argument
122 | _declspec(align(ALIGN_BOUNDARY, OFFSET)) FTYPE b[ROW];
| ^
F:\Users\tomtz\dev\clones\test\vec_samples\src\Driver.c(123,11): error: 'align' attribute takes no more than 1 argument
123 | _declspec(align(ALIGN_BOUNDARY, OFFSET)) FTYPE x[COLWIDTH];
| ^
F:\Users\tomtz\dev\clones\test\vec_samples\src\Driver.c(124,11): error: 'align' attribute takes no more than 1 argument
124 | _declspec(align(ALIGN_BOUNDARY, OFFSET)) FTYPE wr[COLWIDTH];
| ^
1 warning and 4 errors generated.

Labels (1)
0 Kudos
2 Replies
Alex_Y_Intel
Moderator
303 Views

We need more context to check on your issue. Can you please provide us a reproducer and let us know the exact commands you used to see the errors? 

0 Kudos
Theo-at-Stillwater
251 Views
0 Kudos
Reply