-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f29b077
commit 2d04ea3
Showing
3 changed files
with
90 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
62 changes: 62 additions & 0 deletions
62
357_Synthcity/2023b_v0.2.11_new/monai-2023b-full/onnx-2023b.eb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
easyblock = 'PythonPackage' | ||
|
||
name = 'ONNX' | ||
version = '1.17.0' | ||
|
||
homepage = 'https://onnx.ai' | ||
description = """ | ||
Open Neural Network Exchange (ONNX) is an open ecosystem that empowers AI | ||
developers to choose the right tools as their project evolves. ONNX provides an | ||
open source format for AI models, both deep learning and traditional ML. It | ||
defines an extensible computation graph model, as well as definitions of | ||
built-in operators and standard data types. Currently we focus on the | ||
capabilities needed for inferencing (scoring).""" | ||
|
||
toolchain = {'name': 'gfbf', 'version': '2023b'} | ||
|
||
sources = [SOURCELOWER_TAR_GZ] | ||
patches = ['ONNX-1.15.0_fix-protobuf-linking.patch'] | ||
checksums = [ | ||
{'onnx-1.15.0.tar.gz': 'b18461a7d38f286618ca2a6e78062a2a9c634ce498e631e708a8041b00094825'}, | ||
{'ONNX-1.15.0_fix-protobuf-linking.patch': '5c11eca5275a25d69f989571fe1f387b84c7334478356577f6f6349c5954f54d'}, | ||
] | ||
|
||
builddependencies = [ | ||
('CMake', '3.27.6'), | ||
] | ||
|
||
dependencies = [ | ||
('Python', '3.11.5'), | ||
('SciPy-bundle', '2023.11'), | ||
('protobuf-python', '4.25.3'), | ||
('typing-extensions', '4.10.0'), | ||
] | ||
|
||
use_pip = True | ||
download_dep_fail = True | ||
|
||
# hardcode version in pyproject.toml rather than determining it dynamically | ||
preinstallopts = """sed -i 's/"version",//g' pyproject.toml && """ | ||
preinstallopts += """sed -i 's/readme = .*/version = "%(version)s"/g' pyproject.toml && """ | ||
|
||
# specify C++17 standard and link to protobuf shared library (also requires patch to use -DPROTOBUF_USE_DLLS); | ||
# required to fix "error: 'string_view' in namespace 'std' does not name a type", | ||
# see also https://github.com/onnx/onnx/issues/5430 | ||
preinstallopts += "export CMAKE_ARGS='-DCMAKE_CXX_STANDARD=17 -DONNX_USE_PROTOBUF_SHARED_LIBS=ON' && " | ||
|
||
preinstallopts += 'env MAX_JOBS="%(parallel)s"' | ||
|
||
sanity_check_paths = { | ||
'files': ['bin/check-model', 'bin/check-node', 'bin/backend-test-tools'], | ||
'dirs': ['lib/python%(pyshortver)s/site-packages'], | ||
} | ||
|
||
sanity_check_commands = [ | ||
('check-model', '-h'), | ||
('check-node', '-h'), | ||
('backend-test-tools', '-h'), | ||
] | ||
|
||
sanity_pip_check = True | ||
|
||
moduleclass = 'devel' |