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
How to specify particular GPU Device to be used at the time of running a program in SYCL/DPC++?
I was trying the code with SYCL/DPC++. I have two GPUs present on my device. How can I specify that my code needs to run on a particular GPU device?
When I am trying to run my code using "gpu-selector" only one default one is used to run. How can I…

sv6
- 11
- 4
1
vote
1 answer
SYCL/DPC++ cpu version gives correct result, but gpu gives incorrect data
I compiled and ran the below code with intel dpc++ compiler. I am getting right result when using cpu selector but gpu selector gives garbage value.
All that my code does is an array named data is intialised with all 1's. In sycl kernel an accessor…

ArunJose
- 1,999
- 1
- 10
- 33
1
vote
2 answers
Can a subroutine be contained in a subroutine (not in a program) in Fortran?
I have to deal with an old piece of software written in Fortran (mainly written in the 70's and badly maintained up to 3 years ago).
I am trying to get it compiled with VS2017 and the Intel oneAPI compiler (Fortran Compiler Classic 2021.3.0) for…

Alkhwarizmi
- 65
- 7
1
vote
1 answer
Issues after installation of oneAPI intel ToolKit on Debian 10
I have just install oneAPI Base Toolkit and HPC toolkit. As it is indicated into doc, I have put into my ~/.zshrc :
source /opt/intel/oneapi/setvars.sh
Now 2 problems occur :
First, when I open a new terminal, I have systematically the long message…
user1773603
1
vote
1 answer
Why does the "stop" statement in Fortran prevent my program from outputting anything?
I have a very basic Fortran program to try to learn MPI. I'm compiling this script using Visual Studio 2019, MPICH2 and the Intel oneAPI Toolkit. The program is the following
program hello
implicit none
include 'mpif.h'
integer :: rank, size,…

mgmf46
- 145
- 1
- 1
- 10
1
vote
1 answer
oneAPI successfully installed but vtune won't run
I'm using windows' ubuntu terminal, which i'm sure in the problem, but I've installed the linux version of intel's oneAPI on the ubuntu terminal. its says Intel's oneAPI base toolkit has been installed, but typing either
vtune-gui
or…

plotka
- 63
- 1
- 8
1
vote
1 answer
Use DPC++ oneAPI to improve performance
I am new to OpenCL/OneAPI. How can I change this nested loop to use oneAPI GPU:
try {
for (int i = 0; i < count; i++) {
for (int j = 0; j < count; j++) {
if (a_array[i] * a_array[j] == max) {
…
user14645785
1
vote
1 answer
tracebackqq() with ifort leads to segmentation fault
Why does the following code lead to segmentation fault when compiled with ifort?
! testtrb.f90
program testtrb
call tracebackqq() ! This is for ifort
!call backtrace() ! This is for gfortran
print '(/1A/)', 'Finish.'
end program…

Nuno
- 256
- 1
- 11
1
vote
1 answer
Is it required to build LLVM in order to build hipSYCL?
I'm running Centos 7 and am trying to build hipSYCL (see here)
The issue is that hipSYCL needs to have cmake info from the LLVM build (via the LLVM_DIR cmake variable).
This is problematic for me because building LLVM requires a massive 35Gb for the…

Aaron B.
- 1,605
- 13
- 12
1
vote
2 answers
Matrix Multiplication on SYCL using 2D std::vector
I'm new to SYCL and C++. This is my kernel for simple matrix multiplication using 2D std::vector.
void MatrixMulParallel(queue& q,
const std::vector>& a_host,
const std::vector>& b_host,
…

Karan Shah
- 417
- 6
- 21
1
vote
1 answer
SYCL spec 1.2.1 (rev 7) section 4.8.9.3 error?
Based on the code in,SYCL 1.2.1 spec (rev 7) section 4.8.9.3 I wrote the following:
#include
namespace sycl = cl::sycl;
const int Nproc = 8;
int
main(int argc, char *argv[])
{
int x[Nproc];
sycl::device dev =…

justapony
- 129
- 8
1
vote
1 answer
Having trouble creating data buffers for custom objects oneAPI
I am new to oneAPI and similar frameworks, so I am having trouble with data management using SYCL data buffers.
My task is to find substrings in a given string using Aho-Corasick algorithm.
My Idea was to build a trie and after that submit a…

Nazar Pasternak
- 40
- 6
1
vote
1 answer
Incorrect results when runnig SYCL code. while trying to parallize loop
I'm new to this parallel programming field. I'm trying to parallelize below serial code in SYCL. But when I try to run the code, I'm getting incorrect results.
Please find the serial code, SYCL code and output screenshot below. Please help me with…

Goutham_Intel
- 130
- 7
0
votes
1 answer
Intel Server Unavailable after executing the code
I am on intel dev cloud and using Intel OneAPI. This is my code till now:
# first block of jupyter notebook
import modin.pandas as pd
# second block of jupyter notebook
df = pd.read_csv('dataset/dataset.csv')
df.head()
# output of second…

Adarsh Wase
- 1,727
- 3
- 12
- 26
0
votes
0 answers
icl error: Compiler configuration problem encountered. The expected target architecture is missing (2021.6.0-intel64 != 2021.7.1-intel64)
I'm trying to use the intel compilers in oneApi on win64.
the toolkits I have installed are "oneApi Base Toolkit 2022.3" and "oneApi HPC Toolkit 2022.2" and these are the only resources I can use for my project.
(…

hadar
- 1