|
1 | 1 | // RUN: rm -fr %t.cache
|
2 | 2 | //
|
| 3 | +// RUN: export AMD_COMGR_EMIT_VERBOSE_LOGS=1 |
| 4 | +// RUN: export AMD_COMGR_REDIRECT_LOGS=stdout |
| 5 | +// |
| 6 | +// |
| 7 | +// COM: Check the default behavior of AMD_COMGR_CACHE |
3 | 8 | // RUN: unset AMD_COMGR_CACHE
|
4 | 9 | // RUN: AMD_COMGR_CACHE_DIR=%t.cache compile-opencl-minimal \
|
5 |
| -// RUN: %S/../compile-minimal-test.cl %t.bin 1.2 |
| 10 | +// RUN: %S/../compile-minimal-test.cl %t.bin 1.2 | FileCheck --check-prefix=STORED %s |
6 | 11 | // RUN: llvm-objdump -d %t.bin | FileCheck %S/../compile-minimal-test.cl
|
7 | 12 | // RUN: [ -d %t.cache ]
|
8 | 13 | //
|
| 14 | +// RUN: AMD_COMGR_CACHE_DIR=%t.cache compile-opencl-minimal \ |
| 15 | +// RUN: %S/../compile-minimal-test.cl %t.bin 1.2 | FileCheck --check-prefix=FOUND %s |
| 16 | +// RUN: llvm-objdump -d %t.bin | FileCheck %S/../compile-minimal-test.cl |
| 17 | +// |
9 | 18 | // RUN: rm -fr %t.cache
|
10 | 19 | //
|
11 | 20 | // RUN: export AMD_COMGR_CACHE=0
|
|
20 | 29 | // COM 1 element (one for the cache tag, one or more for the cached
|
21 | 30 | // COM: commands)
|
22 | 31 | // RUN: AMD_COMGR_CACHE_DIR=%t.cache compile-opencl-minimal \
|
23 |
| -// RUN: %S/../compile-minimal-test.cl %t_a.bin 1.2 |
| 32 | +// RUN: %S/../compile-minimal-test.cl %t_a.bin 1.2 | FileCheck --check-prefix=STORED %s |
24 | 33 | // RUN: llvm-objdump -d %t_a.bin | FileCheck %S/../compile-minimal-test.cl
|
25 | 34 | // RUN: COUNT_BEFORE=$(ls "%t.cache" | wc -l)
|
26 | 35 |
|
|
29 | 38 | // RUN: [ 4 -eq $COUNT_BEFORE ]
|
30 | 39 | //
|
31 | 40 | // RUN: AMD_COMGR_CACHE_DIR=%t.cache compile-opencl-minimal \
|
32 |
| -// RUN: %S/../compile-minimal-test.cl %t_b.bin 1.2 |
| 41 | +// RUN: %S/../compile-minimal-test.cl %t_b.bin 1.2 | FileCheck --check-prefix=FOUND %s |
33 | 42 | // RUN: llvm-objdump -d %t_b.bin | FileCheck %S/../compile-minimal-test.cl
|
34 | 43 | // RUN: COUNT_AFTER=$(ls "%t.cache" | wc -l)
|
35 | 44 | // RUN: [ $COUNT_AFTER = $COUNT_BEFORE ]
|
36 | 45 | //
|
| 46 | + |
| 47 | +// COM: check that an entry is stored |
| 48 | +// STORED: Comgr cache: stored entry |
| 49 | + |
| 50 | +// COM: check that an entry is found |
| 51 | +// FOUND: Comgr cache: found entry |
0 commit comments