Skip to content

Commit

Permalink
fixes for compilers
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexandr-Solovev committed Nov 14, 2024
1 parent f2e7a32 commit 82dc19a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions samples/oneapi/dpc/ccl/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,13 @@ set(MPIEXEC_MAX_NUMPROCS "1" CACHE STRING "Number of processes")
set(MPIEXEC_NUMPROCS_PER_NODE "1" CACHE STRING "Number of processes per node")

set(MPI_C_COMPILER "mpiicx")
set(CMAKE_C_COMPILER "icx")
if(WIN32)
set(MPI_CXX_COMPILER "mpiicx")
set(CMAKE_CXX_COMPILER "icx")
elseif(UNIX)
set(MPI_CXX_COMPILER "mpiicpx")
set(CMAKE_CXX_COMPILER "icpx")
endif()

# Add cmake scripts and modules to CMake search path
Expand Down
3 changes: 3 additions & 0 deletions samples/oneapi/dpc/mpi/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,13 @@ set(MPIEXEC_MAX_NUMPROCS "4" CACHE STRING "Number of processes")
set(MPIEXEC_NUMPROCS_PER_NODE "4" CACHE STRING "Number of processes per node")

set(MPI_C_COMPILER "mpiicx")
set(CMAKE_C_COMPILER "icx")
if(WIN32)
set(MPI_CXX_COMPILER "mpiicx")
set(CMAKE_CXX_COMPILER "icx")
elseif(UNIX)
set(MPI_CXX_COMPILER "mpiicpx")
set(CMAKE_CXX_COMPILER "icpx")
endif()

# Add cmake scripts and modules to CMake search path
Expand Down

0 comments on commit 82dc19a

Please sign in to comment.