Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
MIGraphX
Commits
f9077931
"vscode:/vscode.git/clone" did not exist on "ad5a14f278819b1743c8c4ef523f50a75f56256b"
Commit
f9077931
authored
May 17, 2018
by
Paul
Browse files
Move includes to src
parent
6b44f839
Changes
20
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
10 additions
and
2 deletions
+10
-2
src/CMakeLists.txt
src/CMakeLists.txt
+2
-1
src/include/rtg/argument.hpp
src/include/rtg/argument.hpp
+7
-0
src/include/rtg/builtin.hpp
src/include/rtg/builtin.hpp
+0
-0
src/include/rtg/erase.hpp
src/include/rtg/erase.hpp
+0
-0
src/include/rtg/errors.hpp
src/include/rtg/errors.hpp
+0
-0
src/include/rtg/fallthrough.hpp
src/include/rtg/fallthrough.hpp
+0
-0
src/include/rtg/float_equal.hpp
src/include/rtg/float_equal.hpp
+0
-0
src/include/rtg/instruction.hpp
src/include/rtg/instruction.hpp
+0
-0
src/include/rtg/instruction_ref.hpp
src/include/rtg/instruction_ref.hpp
+0
-0
src/include/rtg/literal.hpp
src/include/rtg/literal.hpp
+0
-0
src/include/rtg/operation.hpp
src/include/rtg/operation.hpp
+0
-0
src/include/rtg/operators.hpp
src/include/rtg/operators.hpp
+0
-0
src/include/rtg/program.hpp
src/include/rtg/program.hpp
+0
-0
src/include/rtg/raw_data.hpp
src/include/rtg/raw_data.hpp
+0
-0
src/include/rtg/shape.hpp
src/include/rtg/shape.hpp
+0
-0
src/include/rtg/streamutils.hpp
src/include/rtg/streamutils.hpp
+0
-0
src/include/rtg/stringutils.hpp
src/include/rtg/stringutils.hpp
+0
-0
src/include/rtg/target.hpp
src/include/rtg/target.hpp
+0
-0
src/include/rtg/tensor_view.hpp
src/include/rtg/tensor_view.hpp
+0
-0
tools/generate.sh
tools/generate.sh
+1
-1
No files found.
src/CMakeLists.txt
View file @
f9077931
...
...
@@ -4,6 +4,7 @@ add_library(rtg
shape.cpp
)
rocm_clang_tidy_check
(
rtg
)
target_include_directories
(
rtg PUBLIC $<BUILD_INTERFACE:
${
CMAKE_SOURCE_DIR
}
/include>
)
target_include_directories
(
rtg PUBLIC $<BUILD_INTERFACE:
${
CMAKE_
CURRENT_
SOURCE_DIR
}
/include>
)
add_subdirectory
(
onnx
)
add_subdirectory
(
targets/cpu
)
include/rtg/argument.hpp
→
src/
include/rtg/argument.hpp
View file @
f9077931
...
...
@@ -18,6 +18,13 @@ struct argument : raw_data<argument>
{
argument
()
{}
argument
(
shape
s
)
:
m_shape
(
s
)
{
std
::
vector
<
char
>
buffer
(
s
.
bytes
());
// TODO: Move vector
data
=
[
=
]()
mutable
{
return
buffer
.
data
();
};
}
argument
(
shape
s
,
std
::
function
<
char
*
()
>
d
)
:
data
(
d
),
m_shape
(
s
)
{}
/// Provides a raw pointer to the data
...
...
include/rtg/builtin.hpp
→
src/
include/rtg/builtin.hpp
View file @
f9077931
File moved
include/rtg/erase.hpp
→
src/
include/rtg/erase.hpp
View file @
f9077931
File moved
include/rtg/errors.hpp
→
src/
include/rtg/errors.hpp
View file @
f9077931
File moved
include/rtg/fallthrough.hpp
→
src/
include/rtg/fallthrough.hpp
View file @
f9077931
File moved
include/rtg/float_equal.hpp
→
src/
include/rtg/float_equal.hpp
View file @
f9077931
File moved
include/rtg/instruction.hpp
→
src/
include/rtg/instruction.hpp
View file @
f9077931
File moved
include/rtg/instruction_ref.hpp
→
src/
include/rtg/instruction_ref.hpp
View file @
f9077931
File moved
include/rtg/literal.hpp
→
src/
include/rtg/literal.hpp
View file @
f9077931
File moved
include/rtg/operation.hpp
→
src/
include/rtg/operation.hpp
View file @
f9077931
File moved
include/rtg/operators.hpp
→
src/
include/rtg/operators.hpp
View file @
f9077931
File moved
include/rtg/program.hpp
→
src/
include/rtg/program.hpp
View file @
f9077931
File moved
include/rtg/raw_data.hpp
→
src/
include/rtg/raw_data.hpp
View file @
f9077931
File moved
include/rtg/shape.hpp
→
src/
include/rtg/shape.hpp
View file @
f9077931
File moved
include/rtg/streamutils.hpp
→
src/
include/rtg/streamutils.hpp
View file @
f9077931
File moved
include/rtg/stringutils.hpp
→
src/
include/rtg/stringutils.hpp
View file @
f9077931
File moved
include/rtg/target.hpp
→
src/
include/rtg/target.hpp
View file @
f9077931
File moved
include/rtg/tensor_view.hpp
→
src/
include/rtg/tensor_view.hpp
View file @
f9077931
File moved
tools/generate.sh
View file @
f9077931
DIR
=
"
$(
cd
"
$(
dirname
"
${
BASH_SOURCE
[0]
}
"
)
"
&&
pwd
)
"
ls
-1
$DIR
/include/ | xargs
-n
1
-P
$(
nproc
)
-I
{}
-t
bash
-c
"python
$DIR
/te.py
$DIR
/include/{} | clang-format-5.0 -style=file >
$DIR
/../include/rtg/{}"
ls
-1
$DIR
/include/ | xargs
-n
1
-P
$(
nproc
)
-I
{}
-t
bash
-c
"python
$DIR
/te.py
$DIR
/include/{} | clang-format-5.0 -style=file >
$DIR
/../
src/
include/rtg/{}"
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