Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
N
ngraph
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ngraph
Commits
a8a68452
Commit
a8a68452
authored
Apr 24, 2018
by
Fenglei
Committed by
Robert Kimball
Apr 24, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug the dir create after the first ops.txt store (#887)
parent
12e8b9b7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
gpu_external_function.cpp
src/ngraph/runtime/gpu/gpu_external_function.cpp
+5
-2
No files found.
src/ngraph/runtime/gpu/gpu_external_function.cpp
View file @
a8a68452
...
...
@@ -122,7 +122,11 @@ static const string s_output_dir = "gpu_codegen";
class
StaticInitializers
{
public
:
StaticInitializers
()
{
ngraph
::
file_util
::
remove_directory
(
s_output_dir
);
}
StaticInitializers
()
{
file_util
::
remove_directory
(
s_output_dir
);
file_util
::
make_directory
(
s_output_dir
);
}
};
static
string
emit_string_array
(
const
vector
<
string
>&
s
,
size_t
max_line_length
)
...
...
@@ -740,7 +744,6 @@ using namespace std;
}
// TODO: Cleanup and make this a utility function
file_util
::
make_directory
(
s_output_dir
);
string
filename
=
file_util
::
path_join
(
s_output_dir
,
function_name
+
"_codegen.cpp"
);
ofstream
out
(
filename
);
string
code
=
writer
.
get_code
();
...
...
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