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
03c58dc6
Commit
03c58dc6
authored
Feb 22, 2018
by
fenglei.tian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix merge bugs
parent
a4f01e62
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
7 additions
and
48 deletions
+7
-48
build.sh
scripts/build.sh
+0
-4
run.sh
scripts/run.sh
+0
-10
gpu_call_frame.cpp
src/ngraph/runtime/gpu/gpu_call_frame.cpp
+1
-25
gpu_cuda_context_manager.hpp
src/ngraph/runtime/gpu/gpu_cuda_context_manager.hpp
+2
-0
gpu_emitter.cpp
src/ngraph/runtime/gpu/gpu_emitter.cpp
+0
-5
gpu_external_function.cpp
src/ngraph/runtime/gpu/gpu_external_function.cpp
+4
-4
No files found.
scripts/build.sh
deleted
100755 → 0
View file @
a4f01e62
mkdir
build
cd
build
cmake ..
-DNGRAPH_GPU_ENABLE
=
TRUE
-DNGRAPH_CPU_ENABLE
=
TRUE
-DCUDNN_ROOT_DIR
=
/usr/lib/x86_64-linux-gnu/
-DCUDNN_INCLUDE_DIR
=
/usr/include
-DZLIB_LIBRARY
=
/usr/lib/x86_64-linux/gpu/libz.so
-DZLIB_INCLUDE_DIR
=
/usr/include/
-DCMAKE_EXPORT_COMPILE_COMMANDS
=
ON
-DNGRPH_COMPILER_DIAG_ENABLE
=
TRUE
make
-j24
all
scripts/run.sh
deleted
100755 → 0
View file @
a4f01e62
./build/test/unit-test
--gtest_filter
=
GPU.abs
#./build/test/unit-test --gtest_filter=GPU.ab
#./build/test/unit-test --gtest_filter=GPU.abc
#./build/test/unit-test --gtest_filter=GPU.maximum
#./build/test/unit-test --gtest_filter=GPU.minimum
#./build/test/unit-test --gtest_filter=GPU.multiple*
#./build/test/unit-test --gtest_filter=GPU.sqrt
#./build/test/unit-test --gtest_filter=GPU.nagtive
#./build/test/unit-test --gtest_filter=GPU.abs
#./build/test/unit-test --gtest_filter=GPU.dot*
src/ngraph/runtime/gpu/gpu_call_frame.cpp
View file @
03c58dc6
...
...
@@ -21,35 +21,11 @@
#include "ngraph/runtime/gpu/gpu_call_frame.hpp"
#include "ngraph/runtime/gpu/gpu_external_function.hpp"
#include "ngraph/runtime/gpu/gpu_tensor_view.hpp"
#include "ngraph/runtime/gpu/gpu_util.hpp"
using
namespace
std
;
using
namespace
ngraph
;
#define NVRTC_SAFE_CALL(x) \
do \
{ \
nvrtcResult result = x; \
if (result != NVRTC_SUCCESS) \
{ \
std::cerr << "\nerror: " #x " failed with error " << nvrtcGetErrorString(result) \
<< '\n'; \
exit(1); \
} \
} while (0)
#define CUDA_SAFE_CALL(x) \
do \
{ \
CUresult result = x; \
if (result != CUDA_SUCCESS) \
{ \
const char* msg; \
cuGetErrorName(result, &msg); \
std::cerr << "\nerror: " #x " failed with error " << msg << '\n'; \
exit(1); \
} \
} while (0)
runtime
::
gpu
::
GPU_CallFrame
::
GPU_CallFrame
(
std
::
shared_ptr
<
GPU_ExternalFunction
>
external_function
,
EntryPoint
compiled_function
)
:
m_external_function
(
external_function
)
...
...
src/ngraph/runtime/gpu/gpu_cuda_context_manager.hpp
View file @
03c58dc6
...
...
@@ -16,7 +16,9 @@
#pragma once
#include <memory>
#include <string>
#include "ngraph/runtime/gpu/gpu_util.hpp"
namespace
ngraph
...
...
src/ngraph/runtime/gpu/gpu_emitter.cpp
View file @
03c58dc6
...
...
@@ -17,16 +17,11 @@
#include <algorithm>
#include <cmath>
#include <cublas_v2.h>
#include <cublas_v2.h>
#include <cuda.h>
#include <cuda.h>
#include <cuda_runtime.h>
#include <cuda_runtime.h>
#include <cudnn_v7.h>
#include <cudnn_v7.h>
#include <iostream>
#include <nvrtc.h>
#include <nvrtc.h>
#include <string>
#include <typeindex>
#include <unordered_map>
...
...
src/ngraph/runtime/gpu/gpu_external_function.cpp
View file @
03c58dc6
...
...
@@ -256,10 +256,10 @@ void runtime::gpu::GPU_ExternalFunction::compile()
string
pch_header_source
=
writer
.
get_code
();
//
writer += R"(
//
using namespace ngraph;
//
using namespace std;
//
)";
writer
+=
R"(
using namespace ngraph;
using namespace std;
)"
;
if
(
m_emit_timing
)
{
...
...
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