Skip to content

Commit

Permalink
fix: Set the correct CPATH for oneAPI toolkit (#2979)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexandr-Solovev authored Nov 15, 2024
1 parent 6db97a2 commit ad4efd2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions deploy/local/vars_lnx.sh
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ if [ "$(basename "${my_script_path}")" = "env" ] ; then # assume stand-alone
export DALROOT="$__daal_tmp_dir"
export PKG_CONFIG_PATH="$__daal_tmp_dir/lib/pkgconfig${PKG_CONFIG_PATH+:${PKG_CONFIG_PATH}}"
export CMAKE_PREFIX_PATH="$__daal_tmp_dir${CMAKE_PREFIX_PATH+:${CMAKE_PREFIX_PATH}}"
export CPATH="$__daal_tmp_dir/include${CPATH+:${CPATH}}"
export CPATH="$__daal_tmp_dir/include:$__daal_tmp_dir/include/dal${CPATH+:${CPATH}}"
if [ -d "${component_root}/include/dal" ]; then
export LIBRARY_PATH="$__daal_tmp_dir/lib${LIBRARY_PATH+:${LIBRARY_PATH}}"
export LD_LIBRARY_PATH="$__daal_tmp_dir/lib${LD_LIBRARY_PATH+:${LD_LIBRARY_PATH}}"
Expand Down Expand Up @@ -277,7 +277,7 @@ else # must be a consolidated layout

# *"etc"*)
export DALROOT="$ONEAPI_ROOT"
export CPATH="$ONEAPI_ROOT/include${CPATH+:${CPATH}}"
export CPATH="$ONEAPI_ROOT/include:$ONEAPI_ROOT/include/dal${CPATH+:${CPATH}}"
# ;;
# esac
fi
4 changes: 2 additions & 2 deletions deploy/local/vars_win.bat
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ if "%SCRIPT_PATH%"=="%DAAL%\env\" (
) else (
set "DALROOT=%ONEAPI_ROOT%"
set "INCLUDE=%ONEAPI_ROOT%\include\dal;%INCLUDE%"
set "CPATH=%ONEAPI_ROOT%\include;%CPATH%"
set "CPATH=%ONEAPI_ROOT%\include;%ONEAPI_ROOT%\include\dal;%CPATH%"
goto :GoodArgs2024
)

Expand All @@ -53,7 +53,7 @@ exit /b 0

:GoodArgs
set "DALROOT=%DAAL%"
set "CPATH=%DAAL%\include;%CPATH%"
set "CPATH=%DAAL%\include;%DAAL%\include\dal;%CPATH%"
if exist "%DAAL%\include\dal" (
set "INCLUDE=%DAAL%\include\dal;%INCLUDE%"
set "LIB=%DAAL%\lib;%LIB%"
Expand Down

0 comments on commit ad4efd2

Please sign in to comment.