Commit | Line | Data |
---|---|---|
ec980634 | 1 | # Copyright (C) 2019-2020 Free Software Foundation, Inc. |
820c00e6 | 2 | # Copyright (C) 2019-2020 Advanced Micro Devices, Inc. All rights reserved. |
ec980634 | 3 | |
4 | # This file is part of GDB. | |
5 | ||
820c00e6 QS |
6 | # This program is free software; you can redistribute it and/or modify |
7 | # it under the terms of the GNU General Public License as published by | |
8 | # the Free Software Foundation; either version 3 of the License, or | |
9 | # (at your option) any later version. | |
ec980634 | 10 | |
820c00e6 QS |
11 | # This program is distributed in the hope that it will be useful, |
12 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
13 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
14 | # GNU General Public License for more details. | |
ec980634 | 15 | |
820c00e6 QS |
16 | # You should have received a copy of the GNU General Public License |
17 | # along with this program. If not, see <http://www.gnu.org/licenses/>. | |
18 | ||
19 | load_lib rocm.exp | |
20 | ||
ec980634 | 21 | set testfile "multi-GPU" |
820c00e6 QS |
22 | set srcfile ${srcdir}/${subdir}/${testfile}.cpp |
23 | set objfile [standard_output_file ${testfile}.o] | |
24 | set binfile [standard_output_file ${testfile}] | |
25 | ||
26 | # Set device info | |
27 | set ISA "vega10" | |
28 | ||
29 | # Check if skip hip tests | |
30 | if [skip_hipcc_tests] { | |
31 | verbose "Skipping hip test: ${testfile}." | |
32 | return 0 | |
33 | } | |
34 | ||
35 | # Compile the hip program | |
36 | if {[prepare_for_testing "failed to prepare ${testfile}" $testfile $srcfile {debug hip}]} { | |
37 | return -1 | |
38 | } | |
39 | ||
40 | gdb_exit | |
41 | gdb_start | |
42 | ||
43 | # Load the hip program | |
44 | if {[gdb_load ${binfile}] == -1} { | |
45 | verbose "failed to load program ${testfile}." | |
46 | return -1 | |
47 | } | |
48 | ||
49 | gdb_exit |