|
15 | 15 | # along with this program. If not, see <http://www.gnu.org/licenses/>. |
16 | 16 |
|
17 | 17 | # This file is a dejagnu "board file" and is used to run the testsuite |
18 | | -# against C/C++ device code compiled with hipcc. |
| 18 | +# against C/C++ device code compiled with amdclang++ (HIP). |
19 | 19 | # |
20 | 20 | # Example usage: |
21 | 21 | # bash$ make check RUNTESTFLAGS='--target_board=hip' |
@@ -80,8 +80,8 @@ load_lib rocm.exp |
80 | 80 | load_generic_config "unix" |
81 | 81 | process_multilib_options "" |
82 | 82 |
|
83 | | -set_board_info compiler [find_hipcc] |
84 | | -set_board_info c++compiler [find_hipcc] |
| 83 | +set_board_info compiler [find_hip_compiler] |
| 84 | +set_board_info c++compiler [find_hip_compiler] |
85 | 85 |
|
86 | 86 | set_board_info gdb,cannot_call_functions 1 |
87 | 87 |
|
@@ -149,10 +149,15 @@ proc skip_opencl_tests {} { |
149 | 149 | # Yup, we don't want to run the gdb.rocm/ tests against this board. |
150 | 150 | # That would be kind of recursive. Those tests really expect that |
151 | 151 | # "main()" is host code and start kernels themselves. |
152 | | -proc allow_hipcc_tests {} { |
| 152 | +proc allow_hip_tests {} { |
153 | 153 | return 0 |
154 | 154 | } |
155 | 155 |
|
| 156 | +# Backwards compatibility alias. |
| 157 | +proc allow_hipcc_tests {} { |
| 158 | + return [allow_hip_tests] |
| 159 | +} |
| 160 | + |
156 | 161 | # Override this to fail faster. If we let the default run, tests |
157 | 162 | # compile successfully, but fail at link time. |
158 | 163 | proc gdb_compile_pthreads {source dest type options} { |
@@ -271,10 +276,10 @@ proc gdb_compile {source dest type options} { |
271 | 276 |
|
272 | 277 | # We need: |
273 | 278 | # |
274 | | - # . explicit -O0, because hipcc optimizes by default. |
| 279 | + # . explicit -O0, because the HIP compiler optimizes by default. |
275 | 280 | # |
276 | | - # . -std=gnu++11 because hipcc defaults to -std=c++11, and |
277 | | - # some testcases assume GNU extensions. |
| 281 | + # . -std=gnu++11 because the HIP compiler defaults to -std=c++11, |
| 282 | + # and some testcases assume GNU extensions. |
278 | 283 | # |
279 | 284 | # . -fgpu-rdc enables separate compilation mode, so we can |
280 | 285 | # compile the kernel from multiple translation units. |
@@ -303,7 +308,7 @@ proc gdb_compile {source dest type options} { |
303 | 308 | } elseif {[info exists CC_FOR_TARGET]} { |
304 | 309 | set compiler $CC_FOR_TARGET |
305 | 310 | } |
306 | | - if {[string first "hipcc" $compiler] != -1} { |
| 311 | + if {[string first "amdclang++" $compiler] != -1} { |
307 | 312 |
|
308 | 313 | # Remove "c++" from the options when linking, otherwise we |
309 | 314 | # would get: |
|
0 commit comments