SWDEV-292618 - Enable/Fix more dtests on Nvidia Platform

Change-Id: I0fdac4ddefa693674dfce66ba29306f34ad886c9


[ROCm/hip commit: f5703d57cd]
This commit is contained in:
Satyanvesh Dittakavi
2021-06-25 11:12:33 -04:00
rodzic 01d933097d
commit cac5c6a37c
7 zmienionych plików z 34 dodań i 10 usunięć
@@ -18,7 +18,7 @@ THE SOFTWARE.
*/
/* HIT_START
* BUILD: %t %s ../../test_common.cpp NVCC_OPTIONS -std=c++11 EXCLUDE_HIP_RUNTIME rocclr EXCLUDE_HIP_PLATFORM nvidia
* BUILD: %t %s ../../test_common.cpp NVCC_OPTIONS -std=c++11 EXCLUDE_HIP_PLATFORM nvidia
* TEST: %t
* HIT_END
*/
@@ -131,7 +131,13 @@ void run_multi_threads(uint32_t n, const std::vector<char>& buffer) {
int main() {
HIPCHECK(hipInit(0));
auto buffer = load_file();
run_multi_threads(getThreadCount(), buffer);
auto file_size = buffer.size() / (1024 * 1024);
auto thread_count = getHostThreadCount(file_size + 10);
if(thread_count == 0) {
failed("Thread Count is zero");
}
run_multi_threads(thread_count, buffer);
passed();
}