The `llvm-omp-device-info` tool is very handy, but broke due to the lazy evaluation of devices. This repairs the functionality and adds a test. The tool is also renamed into `llvm-offload-device-info` as `-omp-` is going away.
7 lines
170 B
C
7 lines
170 B
C
// RUN: %offload-device-info | %fcheck-generic
|
|
//
|
|
// Just check any device was found and something is printed
|
|
//
|
|
// CHECK: Found {{[1-9].*}} devices:
|
|
// CHECK: Device 0:
|