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
6fe2ec7b
Commit
6fe2ec7b
authored
Oct 28, 2018
by
Paul
Browse files
Increase timeout
parent
01bd7aff
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
4 deletions
+9
-4
src/targets/gpu/include/migraph/gpu/context.hpp
src/targets/gpu/include/migraph/gpu/context.hpp
+8
-3
test/CMakeLists.txt
test/CMakeLists.txt
+1
-1
No files found.
src/targets/gpu/include/migraph/gpu/context.hpp
View file @
6fe2ec7b
...
...
@@ -25,6 +25,11 @@ struct hip_device
stream
(
std
::
size_t
device_number
)
:
id
(
device_number
)
{}
void
setup
()
{
set_device
(
id
);
}
static
hip_stream_ptr
create_stream
()
{
hipStream_t
result
=
nullptr
;
...
...
@@ -38,7 +43,7 @@ struct hip_device
{
if
(
enabled
(
MIGRAPH_DISABLE_NULL_STREAM
{}))
{
set
_device
(
id
);
set
up
(
);
if
(
s
==
nullptr
)
s
=
create_stream
();
assert
(
s
.
get
()
!=
nullptr
);
...
...
@@ -57,7 +62,7 @@ struct hip_device
auto
get_miopen
()
{
set
_device
(
id
);
set
up
(
);
if
(
mihandle
==
nullptr
)
mihandle
=
create_miopen_handle
();
assert
(
mihandle
.
get
()
!=
nullptr
);
...
...
@@ -66,7 +71,7 @@ struct hip_device
auto
get_rocblas
()
{
set
_device
(
id
);
set
up
(
);
if
(
rbhandle
==
nullptr
)
rbhandle
=
create_rocblas_handle_ptr
(
get
());
assert
(
rbhandle
.
get
()
!=
nullptr
);
...
...
test/CMakeLists.txt
View file @
6fe2ec7b
...
...
@@ -7,7 +7,7 @@ find_package(Threads REQUIRED)
include
(
ProcessorCount
)
ProcessorCount
(
N
)
set
(
CTEST_PARALLEL_LEVEL
${
N
}
CACHE STRING
"CTest parallel level"
)
add_custom_target
(
check COMMAND
${
CMAKE_CTEST_COMMAND
}
--output-on-failure -j
${
CTEST_PARALLEL_LEVEL
}
-C
${
CMAKE_CFG_INTDIR
}
--timeout 1
0
00
)
add_custom_target
(
check COMMAND
${
CMAKE_CTEST_COMMAND
}
--output-on-failure -j
${
CTEST_PARALLEL_LEVEL
}
-C
${
CMAKE_CFG_INTDIR
}
--timeout 1
5
00
)
add_custom_target
(
tests
)
find_program
(
MIGRAPH_GDB gdb
)
...
...
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