Science&Enigneering

Compile and Run MPI Programs Using C++ with SYCL

##- 2023. 4. 13. 20:38
728x90

https://www.intel.com/content/www/us/en/developer/articles/technical/compile-and-run-mpi-programs-using-dpcpp-language.html

 

Compile and Run MPI Programs Using DPC++ Language

Message Passing Interface (MPI) is a programing model that can run a multi-processor program in a distributed computing environment.

www.intel.com

 

 

1. Install oneAPI HPC Toolkit

https://www.intel.com/content/www/us/en/developer/tools/oneapi/hpc-toolkit-download.html

 

2. Compile with mpiicpc

$ mpiicpc -fsycl -std=c++17 -lsycl -ltbb main.cpp -o dpc_reduce

code sample 

 

3. run with mpirun

mpirun -np 4 ./dpc_reduce
300x250