[dtests] Fix random timeout failures in hipModuleLoadDataMultThreaded (#1877)

Limit the max threads that are launched to 16.
Этот коммит содержится в:
Maneesh Gupta
2020-02-17 11:16:20 +05:30
коммит произвёл GitHub
родитель 56b8b0d80e
Коммит 854afef281
+2 -1
Просмотреть файл
@@ -36,6 +36,7 @@ THE SOFTWARE.
#define LEN 64
#define SIZE LEN << 2
#define THREADS 2
#define MAX_THREADS 16
#define FILENAME "vcpy_kernel.code"
#define kernel_name "hello_world"
@@ -145,7 +146,7 @@ int main() {
HIPCHECK(hipInit(0));
auto buffer = load_file();
run_multi_threads(THREADS * std::thread::hardware_concurrency(), buffer);
run_multi_threads(min(THREADS * std::thread::hardware_concurrency(), MAX_THREADS), buffer);
passed();
}