Skip to content

Commit 55b929f

Browse files
committed
Lint
1 parent 4136da8 commit 55b929f

File tree

1 file changed

+14
-11
lines changed

1 file changed

+14
-11
lines changed

examples/3_MultiGPU/CMakeLists.txt

+14-11
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ if(CMAKE_BUILD_TESTS)
3636
include(CTest)
3737

3838
if(ENABLE_CUDA)
39-
# 1a. Check the PyTorch model runs on a CUDA device and its outputs meet expectations
39+
# 1a. Check the PyTorch model runs on a CUDA device and its outputs meet
40+
# expectations
4041
add_test(NAME simplenet
4142
COMMAND ${Python_EXECUTABLE} ${PROJECT_SOURCE_DIR}/simplenet.py
4243
--device_type cuda)
@@ -49,16 +50,16 @@ if(CMAKE_BUILD_TESTS)
4950
cuda --filepath ${PROJECT_BINARY_DIR}
5051
WORKING_DIRECTORY ${PROJECT_BINARY_DIR})
5152

52-
# 3a. Check the model can be loaded from file and run on two CUDA devices in Python and that its
53-
# outputs meet expectations
53+
# 3a. Check the model can be loaded from file and run on two CUDA devices
54+
# in Python and that its outputs meet expectations
5455
add_test(
5556
NAME multigpu_infer_python
5657
COMMAND ${Python_EXECUTABLE}
5758
${PROJECT_SOURCE_DIR}/multigpu_infer_python.py --device_type cuda
5859
WORKING_DIRECTORY ${PROJECT_BINARY_DIR})
5960

60-
# 4a. Check the model can be loaded from file and run on two CUDA devices in Fortran and that
61-
# its outputs meet expectations
61+
# 4a. Check the model can be loaded from file and run on two CUDA devices
62+
# in Fortran and that its outputs meet expectations
6263
add_test(
6364
NAME multigpu_infer_fortran
6465
COMMAND multigpu_infer_fortran cuda
@@ -71,7 +72,8 @@ if(CMAKE_BUILD_TESTS)
7172
endif()
7273

7374
if(ENABLE_XPU)
74-
# 1b. Check the PyTorch model runs on an XPU device and its outputs meet expectations
75+
# 1b. Check the PyTorch model runs on an XPU device and its outputs meet
76+
# expectations
7577
add_test(NAME simplenet
7678
COMMAND ${Python_EXECUTABLE} ${PROJECT_SOURCE_DIR}/simplenet.py
7779
--device_type xpu)
@@ -84,16 +86,16 @@ if(CMAKE_BUILD_TESTS)
8486
xpu --filepath ${PROJECT_BINARY_DIR}
8587
WORKING_DIRECTORY ${PROJECT_BINARY_DIR})
8688

87-
# 3b. Check the model can be loaded from file and run on two XPU devices in Python and that its
88-
# outputs meet expectations
89+
# 3b. Check the model can be loaded from file and run on two XPU devices
90+
# in Python and that its outputs meet expectations
8991
add_test(
9092
NAME multigpu_infer_python
9193
COMMAND ${Python_EXECUTABLE}
9294
${PROJECT_SOURCE_DIR}/multigpu_infer_python.py --device_type xpu
9395
WORKING_DIRECTORY ${PROJECT_BINARY_DIR})
9496

95-
# 4b. Check the model can be loaded from file and run on two XPU devices in Fortran and that
96-
# its outputs meet expectations
97+
# 4b. Check the model can be loaded from file and run on two XPU devices
98+
# in Fortran and that its outputs meet expectations
9799
add_test(
98100
NAME multigpu_infer_fortran
99101
COMMAND multigpu_infer_fortran xpu
@@ -106,7 +108,8 @@ if(CMAKE_BUILD_TESTS)
106108
endif()
107109

108110
if(ENABLE_MPS)
109-
# 1c. Check the PyTorch model runs on an MPS device and its outputs meet expectations
111+
# 1c. Check the PyTorch model runs on an MPS device and its outputs meet
112+
# expectations
110113
add_test(NAME simplenet
111114
COMMAND ${Python_EXECUTABLE} ${PROJECT_SOURCE_DIR}/simplenet.py
112115
--device_type mps)

0 commit comments

Comments
 (0)