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