浏览代码

fix warning

Samuel Thibault 4 年之前
父节点
当前提交
fc8f6c8d85
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      src/core/perfmodel/perfmodel_bus.c

+ 3 - 3
src/core/perfmodel/perfmodel_bus.c

@@ -2880,9 +2880,9 @@ static void write_bus_platform_file_content(int version)
 				/* Otherwise, link to another GPU? */
 				for (k = i+1; k < ncuda; k++)
 				{
-					if (pci.domain == props[k].pciDomainID
-					 && pci.bus == props[k].pciBusID
-					 && pci.device == props[k].pciDeviceID)
+					if ((int) pci.domain == props[k].pciDomainID
+					 && (int) pci.bus == props[k].pciBusID
+					 && (int) pci.device == props[k].pciDeviceID)
 					{
 						nvlink[i][k] = 1;
 						nvlink[k][i] = 1;