Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(350)

Side by Side Diff: tools/nanobench_flags.py

Issue 2145633002: Run the Vulkan config on nanobench for Vulkan bots (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « tools/nanobench_flags.json ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # 1 #
2 # Copyright 2015 Google Inc. 2 # Copyright 2015 Google Inc.
3 # 3 #
4 # Use of this source code is governed by a BSD-style license that can be 4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 5 # found in the LICENSE file.
6 # 6 #
7 7
8 #!/usr/bin/env python 8 #!/usr/bin/env python
9 9
10 usage = ''' 10 usage = '''
(...skipping 18 matching lines...) Expand all
29 def get_args(bot): 29 def get_args(bot):
30 args = ['--pre_log'] 30 args = ['--pre_log']
31 31
32 if 'GPU' in bot: 32 if 'GPU' in bot:
33 args.append('--images') 33 args.append('--images')
34 args.extend(['--gpuStatsDump', 'true']) 34 args.extend(['--gpuStatsDump', 'true'])
35 35
36 if 'Android' in bot and 'GPU' in bot: 36 if 'Android' in bot and 'GPU' in bot:
37 args.extend(['--useThermalManager', '1,1,10,1000']) 37 args.extend(['--useThermalManager', '1,1,10,1000'])
38 38
39 if 'Appurify' not in bot: 39 args.extend(['--scales', '1.0', '1.1'])
40 args.extend(['--scales', '1.0', '1.1'])
41 40
42 if 'iOS' in bot: 41 if 'iOS' in bot:
43 args.extend(['--skps', 'ignore_skps']) 42 args.extend(['--skps', 'ignore_skps'])
44 43
45 if 'Appurify' not in bot: 44 config = ['565', '8888', 'gpu', 'nonrendering', 'angle', 'hwui']
46 config = ['565', '8888', 'gpu', 'nonrendering', 'angle', 'hwui'] 45 # The S4 crashes and the NP produces a long error stream when we run with
47 # The S4 crashes and the NP produces a long error stream when we run with 46 # MSAA.
48 # MSAA. 47 if ('GalaxyS4' not in bot and
49 if ('GalaxyS4' not in bot and 48 'NexusPlayer' not in bot):
50 'NexusPlayer' not in bot): 49 if 'Android' in bot:
51 if 'Android' in bot: 50 # The TegraX1 has a regular OpenGL implementation. We bench that instead
52 # The TegraX1 has a regular OpenGL implementation. We bench that instead 51 # of ES.
53 # of ES. 52 if 'TegraX1' in bot:
54 if 'TegraX1' in bot: 53 config.remove('gpu')
55 config.remove('gpu') 54 config.extend(['gl', 'glmsaa4', 'glnvpr4', 'glnvprdit4'])
56 config.extend(['gl', 'glmsaa4', 'glnvpr4', 'glnvprdit4'])
57 else:
58 config.extend(['msaa4', 'nvpr4', 'nvprdit4'])
59 else: 55 else:
60 config.extend(['msaa16', 'nvpr16', 'nvprdit16']) 56 config.extend(['msaa4', 'nvpr4', 'nvprdit4'])
61 args.append('--config') 57 else:
62 args.extend(config) 58 config.extend(['msaa16', 'nvpr16', 'nvprdit16'])
59
60 if 'Vulkan' in bot:
61 config = ['vk']
62
63 args.append('--config')
64 args.extend(config)
63 65
64 if 'Valgrind' in bot: 66 if 'Valgrind' in bot:
65 # Don't care about Valgrind performance. 67 # Don't care about Valgrind performance.
66 args.extend(['--loops', '1']) 68 args.extend(['--loops', '1'])
67 args.extend(['--samples', '1']) 69 args.extend(['--samples', '1'])
68 # Ensure that the bot framework does not think we have timed out. 70 # Ensure that the bot framework does not think we have timed out.
69 args.extend(['--keepAlive', 'true']) 71 args.extend(['--keepAlive', 'true'])
70 72
71 if 'HD2000' in bot: 73 if 'HD2000' in bot:
72 args.extend(['--GPUbenchTileW', '256']) 74 args.extend(['--GPUbenchTileW', '256'])
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 'Perf-Android-GCC-Nexus6-GPU-Adreno420-Arm7-Release', 153 'Perf-Android-GCC-Nexus6-GPU-Adreno420-Arm7-Release',
152 'Perf-Android-Nexus7-Tegra3-Arm7-Release', 154 'Perf-Android-Nexus7-Tegra3-Arm7-Release',
153 'Perf-Android-GCC-NexusPlayer-GPU-PowerVR-x86-Release', 155 'Perf-Android-GCC-NexusPlayer-GPU-PowerVR-x86-Release',
154 'Perf-Android-GCC-GalaxyS3-GPU-Mali400-Arm7-Release', 156 'Perf-Android-GCC-GalaxyS3-GPU-Mali400-Arm7-Release',
155 'Test-Ubuntu-GCC-ShuttleA-GPU-GTX550Ti-x86_64-Release-Valgrind', 157 'Test-Ubuntu-GCC-ShuttleA-GPU-GTX550Ti-x86_64-Release-Valgrind',
156 'Test-Win7-MSVC-ShuttleA-GPU-HD2000-x86-Debug-ANGLE', 158 'Test-Win7-MSVC-ShuttleA-GPU-HD2000-x86-Debug-ANGLE',
157 'Test-iOS-Clang-iPad4-GPU-SGX554-Arm7-Debug', 159 'Test-iOS-Clang-iPad4-GPU-SGX554-Arm7-Debug',
158 'Test-Android-GCC-GalaxyS4-GPU-SGX544-Arm7-Release', 160 'Test-Android-GCC-GalaxyS4-GPU-SGX544-Arm7-Release',
159 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug-Trybot', 161 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug-Trybot',
160 'Perf-Android-GCC-NVIDIA_Shield-GPU-TegraX1-Arm64-Release', 162 'Perf-Android-GCC-NVIDIA_Shield-GPU-TegraX1-Arm64-Release',
163 'Perf-Android-GCC-NVIDIA_Shield-GPU-TegraX1-Arm64-Release-Vulkan',
161 'Perf-Android-GCC-Nexus5-GPU-Adreno330-Arm7-Release', 164 'Perf-Android-GCC-Nexus5-GPU-Adreno330-Arm7-Release',
162 ] 165 ]
163 166
164 cov = coverage.coverage() 167 cov = coverage.coverage()
165 cov.start() 168 cov.start()
166 for case in cases: 169 for case in cases:
167 args[case] = get_args(case) 170 args[case] = get_args(case)
168 cov.stop() 171 cov.stop()
169 172
170 this_file = os.path.basename(__file__) 173 this_file = os.path.basename(__file__)
(...skipping 12 matching lines...) Expand all
183 if len(sys.argv) == 2 and sys.argv[1] == 'test': 186 if len(sys.argv) == 2 and sys.argv[1] == 'test':
184 self_test() 187 self_test()
185 sys.exit(0) 188 sys.exit(0)
186 189
187 if len(sys.argv) != 3: 190 if len(sys.argv) != 3:
188 print usage 191 print usage
189 sys.exit(1) 192 sys.exit(1)
190 193
191 with open(sys.argv[1], 'w') as out: 194 with open(sys.argv[1], 'w') as out:
192 json.dump(get_args(sys.argv[2]), out) 195 json.dump(get_args(sys.argv[2]), out)
OLDNEW
« no previous file with comments | « tools/nanobench_flags.json ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698