Skip to content

Fixed build script for latest version i.e. v1.24.1#8010

Open
sanskarnema10 wants to merge 1 commit intoppc64le:masterfrom
sanskarnema10:onnxruntime_1.24.1
Open

Fixed build script for latest version i.e. v1.24.1#8010
sanskarnema10 wants to merge 1 commit intoppc64le:masterfrom
sanskarnema10:onnxruntime_1.24.1

Conversation

@sanskarnema10
Copy link
Copy Markdown

Checklist

  • Have you checked and followed all the points mention in the CONTRIBUTING.MD
  • Have you validated script on UBI 9 container
  • Did you run the script(s) on fresh container with set -e option enabled and observe success ?
  • Did you have Legal approvals for patch files ?

@sanskarnema10
Copy link
Copy Markdown
Author

@cdeepali can you please review it.
Thanks!

@shivansh-ibm
Copy link
Copy Markdown
Contributor

@cdeepali , please review and accept the changes


# Manually defines Python::NumPy for CMake versions with broken NumPy detection
sed -i '193i # Fix for Python::NumPy target not found\nif(NOT TARGET Python::NumPy)\n find_package(Python3 COMPONENTS NumPy REQUIRED)\n add_library(Python::NumPy INTERFACE IMPORTED)\n target_include_directories(Python::NumPy INTERFACE ${Python3_NumPy_INCLUDE_DIR})\n message(STATUS "Manually defined Python::NumPy with include dir: ${Python3_NumPy_INCLUDE_DIR}")\nendif()\n' $CURRENT_DIR/onnxruntime/cmake/onnxruntime_python.cmake
# sed -i '193i # Fix for Python::NumPy target not found\nif(NOT TARGET Python::NumPy)\n find_package(Python3 COMPONENTS NumPy REQUIRED)\n add_library(Python::NumPy INTERFACE IMPORTED)\n target_include_directories(Python::NumPy INTERFACE ${Python3_NumPy_INCLUDE_DIR})\n message(STATUS "Manually defined Python::NumPy with include dir: ${Python3_NumPy_INCLUDE_DIR}")\nendif()\n' $CURRENT_DIR/onnxruntime/cmake/onnxruntime_python.cmake
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pls remove the commented line 198.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants