Update copyright and license
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.rocm / multi-GPU.exp
CommitLineData
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
19load_lib rocm.exp
20
ec980634 21set testfile "multi-GPU"
820c00e6
QS
22set srcfile ${srcdir}/${subdir}/${testfile}.cpp
23set objfile [standard_output_file ${testfile}.o]
24set binfile [standard_output_file ${testfile}]
25
26# Set device info
27set ISA "vega10"
28
29# Check if skip hip tests
30if [skip_hipcc_tests] {
31 verbose "Skipping hip test: ${testfile}."
32 return 0
33}
34
35# Compile the hip program
36if {[prepare_for_testing "failed to prepare ${testfile}" $testfile $srcfile {debug hip}]} {
37 return -1
38}
39
40gdb_exit
41gdb_start
42
43# Load the hip program
44if {[gdb_load ${binfile}] == -1} {
45 verbose "failed to load program ${testfile}."
46 return -1
47}
48
49gdb_exit
This page took 0.024722 seconds and 4 git commands to generate.