Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
gaoqiong
MIGraphX
Commits
c9e3af8e
Commit
c9e3af8e
authored
Jun 26, 2018
by
Paul
Browse files
Merge branch 'shared'
parents
7b2f0975
3f3dea3d
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
2 deletions
+6
-2
CMakeLists.txt
CMakeLists.txt
+2
-0
requirements.txt
requirements.txt
+1
-1
src/onnx/CMakeLists.txt
src/onnx/CMakeLists.txt
+3
-1
No files found.
CMakeLists.txt
View file @
c9e3af8e
...
@@ -3,6 +3,8 @@ cmake_minimum_required(VERSION 3.5)
...
@@ -3,6 +3,8 @@ cmake_minimum_required(VERSION 3.5)
project
(
rtglib
)
project
(
rtglib
)
find_package
(
ROCM REQUIRED
)
find_package
(
ROCM REQUIRED
)
option
(
BUILD_SHARED_LIBS
"Build as a shared library"
ON
)
if
(
CMAKE_CXX_COMPILER_ID STREQUAL
"GNU"
)
if
(
CMAKE_CXX_COMPILER_ID STREQUAL
"GNU"
)
if
(
CMAKE_CXX_COMPILER_VERSION VERSION_LESS
"5.4"
)
if
(
CMAKE_CXX_COMPILER_VERSION VERSION_LESS
"5.4"
)
message
(
FATAL_ERROR
"RTGLib requires at least gcc 5.4"
)
message
(
FATAL_ERROR
"RTGLib requires at least gcc 5.4"
)
...
...
requirements.txt
View file @
c9e3af8e
google/protobuf
google/protobuf
-DCMAKE_POSITION_INDEPENDENT_CODE=On
RadeonOpenCompute/rocm-cmake@3f43e2d493f24abbab4dc189a9ab12cc3ad33baf
--build
RadeonOpenCompute/rocm-cmake@3f43e2d493f24abbab4dc189a9ab12cc3ad33baf
--build
ROCmSoftwarePlatform/MIOpen,http://gitlab1.amd.com/pfultz/miopen/-/archive/57dd8372fa043f4bb500ac297f2c479e1c819e89/miopen-57dd8372fa043f4bb500ac297f2c479e1c819e89.tar.bz2
-DMIOPEN_CACHE_DIR=""
ROCmSoftwarePlatform/MIOpen,http://gitlab1.amd.com/pfultz/miopen/-/archive/57dd8372fa043f4bb500ac297f2c479e1c819e89/miopen-57dd8372fa043f4bb500ac297f2c479e1c819e89.tar.bz2
-DMIOPEN_CACHE_DIR=""
src/onnx/CMakeLists.txt
View file @
c9e3af8e
...
@@ -5,10 +5,12 @@ add_library(onnx-proto STATIC ${PROTO_SRCS})
...
@@ -5,10 +5,12 @@ add_library(onnx-proto STATIC ${PROTO_SRCS})
target_include_directories
(
onnx-proto SYSTEM PUBLIC
${
CMAKE_CURRENT_BINARY_DIR
}
${
PROTOBUF_INCLUDE_DIR
}
)
target_include_directories
(
onnx-proto SYSTEM PUBLIC
${
CMAKE_CURRENT_BINARY_DIR
}
${
PROTOBUF_INCLUDE_DIR
}
)
target_compile_options
(
onnx-proto PRIVATE -w
)
target_compile_options
(
onnx-proto PRIVATE -w
)
target_link_libraries
(
onnx-proto PRIVATE
${
PROTOBUF_LIBRARY
}
)
target_link_libraries
(
onnx-proto PRIVATE
${
PROTOBUF_LIBRARY
}
)
set_target_properties
(
onnx-proto PROPERTIES POSITION_INDEPENDENT_CODE On
)
add_library
(
rtg_onnx onnx.cpp
)
add_library
(
rtg_onnx onnx.cpp
)
rocm_clang_tidy_check
(
rtg_onnx
)
rocm_clang_tidy_check
(
rtg_onnx
)
target_link_libraries
(
rtg_onnx onnx-proto rtg
)
target_link_libraries
(
rtg_onnx PRIVATE onnx-proto
)
target_link_libraries
(
rtg_onnx PUBLIC rtg
)
add_executable
(
read_onnx read_onnx.cpp
)
add_executable
(
read_onnx read_onnx.cpp
)
rocm_clang_tidy_check
(
read_onnx
)
rocm_clang_tidy_check
(
read_onnx
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment