Commit 6fe2ec7b authored by Paul's avatar Paul
Browse files

Increase timeout

parent 01bd7aff
......@@ -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);
setup();
if(s == nullptr)
s = create_stream();
assert(s.get() != nullptr);
......@@ -57,7 +62,7 @@ struct hip_device
auto get_miopen()
{
set_device(id);
setup();
if(mihandle == nullptr)
mihandle = create_miopen_handle();
assert(mihandle.get() != nullptr);
......@@ -66,7 +71,7 @@ struct hip_device
auto get_rocblas()
{
set_device(id);
setup();
if(rbhandle == nullptr)
rbhandle = create_rocblas_handle_ptr(get());
assert(rbhandle.get() != nullptr);
......
......@@ -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 1000)
add_custom_target(check COMMAND ${CMAKE_CTEST_COMMAND} --output-on-failure -j ${CTEST_PARALLEL_LEVEL} -C ${CMAKE_CFG_INTDIR} --timeout 1500)
add_custom_target(tests)
find_program(MIGRAPH_GDB gdb)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment