Ver código fonte

Warn when we do not get CUDA location from hwloc

Samuel Thibault 4 anos atrás
pai
commit
347e846ebd
1 arquivos alterados com 1 adições e 0 exclusões
  1. 1 0
      src/core/perfmodel/perfmodel_bus.c

+ 1 - 0
src/core/perfmodel/perfmodel_bus.c

@@ -2832,6 +2832,7 @@ static void write_bus_platform_file_content(int version)
 				if (i != j)
 				if (i != j)
 					if (!find_platform_cuda_path(topology, i, j, 1000000. / cudadev_timing_dtod[i][j]))
 					if (!find_platform_cuda_path(topology, i, j, 1000000. / cudadev_timing_dtod[i][j]))
 					{
 					{
+						_STARPU_DISP("Warning: could not get CUDA location from hwloc, please make sure that hwloc has its cuda plugin enabled\n");
 						clean_topology(hwloc_get_root_obj(topology));
 						clean_topology(hwloc_get_root_obj(topology));
 						hwloc_topology_destroy(topology);
 						hwloc_topology_destroy(topology);
 						goto flat_cuda;
 						goto flat_cuda;