Use this tag to ask questions about the overall oneAPI programming model which provides unified developer tools that can be used across multiple hardware platforms, including a range of performance libraries spanning several workload domains. The libraries include functions custom-coded for each target architecture so the same function call delivers optimized performance across supported architectures.
Questions tagged [intel-oneapi]
220 questions
1
vote
2 answers
Is there a way to run cmake using intel compilers?
I was trying to run a program using intel compilers but while compiling the program it showed error.
It was was due to cmake.
cmake -G "Visual Studio 17 2022" -A x64 -T "Intel(R) oneAPI DPC++ Compiler" ..
-- CMAKE_BUILD_TYPE is unset, defaulting to…

Pksingh
- 53
- 4
1
vote
0 answers
Using GDB with MPI
I installed MPI using the Intel OneAPI HPC Toolkit and want to use GDB to debug simple MPI programs. My program is:
#include
#include
int main(){
MPI_Init(NULL,NULL);
int rank, size;
MPI_Comm_rank(MPI_COMM_WORLD,…

BoringSession
- 55
- 1
- 7
1
vote
0 answers
SYCL parallel_for condition as a while loop
I am new to the oneAPI with SYCL and I have the following function
q.submit([&](auto &h) {
h.parallel_for(range<1>(size), [=](id<1> idx) {
m_Add(C,A,B,idx);
m_Multiply(D,C,A,idx);
});
…

solarlate
- 11
- 1
- 2
1
vote
2 answers
OpenMP offloading with Intel oneAPI DPC++ compiler to NVIDIA GPU
I'm on a mission to write a program with OpenMP offloading to a GPU. At the moment I compile my code with Intel oneAPI DPC++ compiler icpx v2022.1.0 and aim to utilise an NVIDIA Tesla V100 at the backend. Please find below the relevant parts of my…

mabalenk
- 887
- 1
- 8
- 17
1
vote
1 answer
Why is CMake ignoring the compiler settings via command line?
I am trying to build MAGMA from Windows 10 but it's not working. I downloaded the project MAGMA from here http://icl.utk.edu/projectsfiles/magma/downloads/magma-2.6.2.tar.gz. I downloaded and installed Intel's One API compilers and MKL. I'm taking…

SkyWalker
- 13,729
- 18
- 91
- 187
1
vote
0 answers
How to convert Visual Studio ‘s sln file to cmake or makefile?
On Windows, with Intel OneAPI (mostly Fortran) and Visual Studio.
Does anyone know how to convert Visual Studio 's sln file(the solution file) to cmake or Makefile?
I tried cmake-converter,
https://github.com/pavelliavonau/cmakeconverter
however, it…

CRquantum
- 546
- 3
- 14
1
vote
1 answer
SYCL DPC++ auto detect device
This question might be trivial, unfortunately I haven't found the answer I was looking for.
I used dpct migration tool to port some cuda code to Intel DPC++ and then I further optimized everything I needed and eventually got rid of everything…

Elle
- 305
- 2
- 10
1
vote
0 answers
port SYCL/DPC++ code originally written for GPUs to FPGAs
I'm kinda new to the world of FPGAs and I'm trying to port some code written for GPUs to FPGAs, to compare the performances.
From my understanding, using parallel_for ain't a good practice (in fact it runs very slow), instead (I think) I should use…

Elle
- 305
- 2
- 10
1
vote
1 answer
Is there a DPC++/SYCL equivalent of CUDA's atomicCAS?
From my understanding, CUDA's atomicCAS has the following definition (this is one of the four)
int atomicCAS(int* address, int compare, int val);
and it compares atomically the values located at address (named in the doc old) in the global shared…

Elle
- 305
- 2
- 10
1
vote
1 answer
Intel OneAPI setvarsh.sh not set pernamently (Ubuntu)
I am struggling with the usage of intel OneAPI, specifically compiler (DPC++/C++) and Vtune Profiler.
I've installed everything successfully, used source setvarsh.sh in the installation directory and everything worked fine until I closed the…

Dr. Ske
- 69
- 6
1
vote
1 answer
OneAPI wrong behaviour of exclusive_scan
I'm learning the oneapi and I get wrong results when i try to do an exclusive_scan when I use the dpcpp parallel version.
It always assumes the first element to be zero.
Code:
#include
#include
#include…

Diego Masotti
- 33
- 4
1
vote
2 answers
Can't install Intel MKL
I've downloaded two different versions of the Intel OneAPI BaseKit Offline Installer:
w_BaseKit_p_2021.2.0.2871_offline.exe
and
w_BaseKit_p_2022.1.2.154_offline.exe
Both properly extract, start the bootstrapper.exe, show a loading screen, and then…

mas
- 1,155
- 1
- 11
- 28
1
vote
1 answer
How can I fix the issue "rc.exe not found" in Visual Studio 2022? "
Premise: I'm completely new to Fortran programming and to the Visual Studio environment.
I've created a very simple Fortran project in Microsoft Visual Studio Community 2022 (the source file is a .f90 file).
The code is the following one:
program…

g_don
- 195
- 1
- 9
1
vote
0 answers
error #6633: The type of the actual argument differs from the type of the dummy argument - Intel Fortran Compiler classic 2021.1.1
I have a module which defines a Type, with its methods, plus some other Type-unrelated methods as well.
module TypeDef
type, public :: T
...
contains
...
procedure type_proc
end type
...
contains !module
…

mEm
- 353
- 3
- 12
1
vote
1 answer
In dpc++ malloc_shared can we share a buffer between 2 gpus
In sycl/dpc++ malloc_shared I am aware that it is possible to create a buffer which could be shared between the host and a single gpu with the below function.
void* malloc_shared(size_t num_bytes,
const sycl::device& dev,
…

valiant
- 11
- 1