Skip to content

Commit

Permalink
Merge pull request #1001 from IntelPython/fix-inconsistency-system-gi…
Browse files Browse the repository at this point in the history
…t-and-conda-env

Fix inconsistency system git and conda env
  • Loading branch information
oleksandr-pavlyk authored Nov 28, 2022
2 parents 7690952 + 701f708 commit 457450a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
4 changes: 3 additions & 1 deletion conda-recipe/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
# activation scripts.
export LDFLAGS="$LDFLAGS -Wl,-rpath,$PREFIX/lib"

${PYTHON} setup.py clean --all
if [ -e "_skbuild" ]; then
${PYTHON} setup.py clean --all
fi
export CMAKE_GENERATOR="Ninja"
SKBUILD_ARGS="-- -DCMAKE_C_COMPILER:PATH=icx -DCMAKE_CXX_COMPILER:PATH=icpx"
echo "${PYTHON} setup.py install ${SKBUILD_ARGS}"
Expand Down
5 changes: 3 additions & 2 deletions conda-recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,11 @@ requirements:
- {{ compiler('dpcpp') }} >=2022.1 # [not osx]
host:
- setuptools
- cython
- cmake >=3.21
- python
- ninja
- git
- cython
- python
- scikit-build
- numpy
- wheel
Expand Down
8 changes: 4 additions & 4 deletions libsyclinterface/cmake/modules/GetLevelZeroHeaders.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ function(get_level_zero_headers)

if(NOT result EQUAL 0)
message(FATAL_ERROR
"Could not update Level Zero sources."
"Could not update Level Zero sources. Return code: ${result}"
)
endif()
else()
Expand All @@ -54,7 +54,7 @@ function(get_level_zero_headers)

if(NOT result EQUAL 0)
message(FATAL_ERROR
"Could not clone Level Zero sources from github.com/oneapi-src/level-zero."
"Could not clone Level Zero sources from github.com/oneapi-src/level-zero. Return code: ${result}"
)
endif()
endif()
Expand All @@ -72,7 +72,7 @@ function(get_level_zero_headers)

if(NOT result EQUAL 0)
message(FATAL_ERROR
"Could not get the name for the latest release."
"Could not get the name for the latest release. Return code: ${result}"
)
endif()

Expand All @@ -88,7 +88,7 @@ function(get_level_zero_headers)

if(NOT result EQUAL 0)
message(FATAL_ERROR
"Could not checkout the latest release."
"Could not checkout the latest release. Return code: ${result}"
)
endif()

Expand Down

0 comments on commit 457450a

Please sign in to comment.