|
379 | 379 | sp = subprocess.run((cmd), env=llvm_config.config.environment, |
380 | 380 | shell=True, capture_output=True, text=True) |
381 | 381 | if sp.returncode != 0: |
382 | | - lit_config.error('Cannot list device aspects for {}:{}\nstdout:\n{}\nstderr:\n'.format( |
383 | | - be, device, sp.stdout, sp.stderr)) |
| 382 | + lit_config.error('Cannot list device aspects for {}\nstdout:\n{}\nstderr:\n{}'.format( |
| 383 | + sycl_device, sp.stdout, sp.stderr)) |
384 | 384 |
|
385 | 385 | dev_aspects = [] |
386 | 386 | dev_sg_sizes = [] |
|
394 | 394 | dev_sg_sizes.append(sg_sizes_str.strip().split(' ')) |
395 | 395 |
|
396 | 396 | if dev_aspects == []: |
397 | | - lit_config.error('Cannot detect device aspect for {}\nstdout:\n{}\nstderr:\n'.format( |
| 397 | + lit_config.error('Cannot detect device aspect for {}\nstdout:\n{}\nstderr:\n{}'.format( |
398 | 398 | sycl_device, sp.stdout, sp.stderr)) |
399 | 399 | dev_aspects.append(set()) |
400 | | - else: |
401 | | - # We might have several devices matching the same filter in the system. |
402 | | - # Compute intersection of aspects. |
403 | | - aspects = set(dev_aspects[0]).intersection(*dev_aspects) |
404 | | - lit_config.note('Aspects for {}: {}'.format(sycl_device, ', '.join(aspects))) |
| 400 | + # We might have several devices matching the same filter in the system. |
| 401 | + # Compute intersection of aspects. |
| 402 | + aspects = set(dev_aspects[0]).intersection(*dev_aspects) |
| 403 | + lit_config.note('Aspects for {}: {}'.format(sycl_device, ', '.join(aspects))) |
405 | 404 |
|
406 | 405 | if dev_sg_sizes == []: |
407 | | - lit_config.error('Cannot detect device SG sizes for {}\nstdout:\n{}\nstderr:\n'.format( |
| 406 | + lit_config.error('Cannot detect device SG sizes for {}\nstdout:\n{}\nstderr:\n{}'.format( |
408 | 407 | sycl_device, sp.stdout, sp.stderr)) |
409 | 408 | dev_sg_sizes.append(set()) |
410 | | - else: |
411 | | - # We might have several devices matching the same filter in the system. |
412 | | - # Compute intersection of aspects. |
413 | | - sg_sizes = set(dev_sg_sizes[0]).intersection(*dev_sg_sizes) |
414 | | - lit_config.note('SG sizes for {}: {}'.format(sycl_device, ', '.join(sg_sizes))) |
415 | | - |
| 409 | + # We might have several devices matching the same filter in the system. |
| 410 | + # Compute intersection of aspects. |
| 411 | + sg_sizes = set(dev_sg_sizes[0]).intersection(*dev_sg_sizes) |
| 412 | + lit_config.note('SG sizes for {}: {}'.format(sycl_device, ', '.join(sg_sizes))) |
416 | 413 |
|
417 | 414 | aspect_features = set('aspect-' + a for a in aspects) |
418 | 415 | sg_size_features = set('sg-' + s for s in sg_sizes) |
|
0 commit comments