Skip to content
This repository was archived by the owner on Mar 21, 2024. It is now read-only.

Commit 1d58371

Browse files
committed
Revert "Thrust: Fix Android aarch64 support in the thrust_nightly.pl driver."
This reverts commit a76da4a.
1 parent 8817367 commit 1d58371

File tree

1 file changed

+42
-45
lines changed

1 file changed

+42
-45
lines changed

internal/test/thrust_nightly.pl

Lines changed: 42 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -88,21 +88,21 @@ ()
8888

8989
$retVal = GetOptions(\%CmdLineOption,
9090
'help' => sub { Usage() and exit 0 },
91-
"forcearch=s" => \$arch,
92-
"forceabi=s" => \$abi,
93-
"forceos=s" => \$os,
94-
"build=s" => \$build,
91+
"forcearch=s" => \$arch,
92+
"forceabi=s" => \$abi,
93+
"forceos=s" => \$os,
94+
"build=s" => \$build,
9595
"timeout-min=i" => \$timeout_min,
9696
"filter-list-file=s" => \$filter_list_file,
9797
"test-list-file=s" => \$test_list_file,
9898
"unit-test-list-file=s" => \$unit_test_list_file,
9999
"testname=s" => \$testname,
100100
"dvs" => \$dvs,
101101
"openmp" => \$openmp,
102-
"remote_server=s" => \$remote_server,
103-
"remote_android" => \$remote_android,
104-
"remote_path=s" => \$remote_path,
105-
);
102+
"remote_server=s" => \$remote_server,
103+
"remote_android" => \$remote_android,
104+
"remote_path=s" => \$remote_path,
105+
);
106106

107107
# Generate gold output files (set to 1 manually)
108108
my $generate_gold = 0;
@@ -117,13 +117,10 @@ ()
117117
else {
118118
$abi = "_${abi}";
119119
}
120-
}
121-
elsif ($arch eq "aarch64") {
122-
$abi = "_${abi}";
123-
}
124-
else {
125-
$abi = ""; #Ignore abi for architectures other than arm
126-
}
120+
}
121+
else {
122+
$abi = ""; #Ignore abi for architectures other than arm
123+
}
127124

128125
if ($remote_server || $remote_android) {
129126
$remote = 1;
@@ -291,7 +288,7 @@ sub xgetUnitTestList {
291288
foreach my $line (<$fin>) {
292289
$line =~ s/\s+$//;
293290
# Put $line in quotes to avoid <> problems
294-
push (@utl, "thrust_test \"$line\"");
291+
push (@utl, "thrust_test \"$line\"");
295292
}
296293
close $fin;
297294
return @utl;
@@ -408,13 +405,13 @@ sub get_file {
408405
}
409406

410407
sub compare_arrays {
411-
my ($first, $second) = @_;
412-
no warnings; # silence spurious -w undef complaints
413-
return 0 unless @$first == @$second;
414-
for (my $i = 0; $i < @$first; $i++) {
415-
return 0 if $first->[$i] ne $second->[$i];
416-
}
417-
return 1;
408+
my ($first, $second) = @_;
409+
no warnings; # silence spurious -w undef complaints
410+
return 0 unless @$first == @$second;
411+
for (my $i = 0; $i < @$first; $i++) {
412+
return 0 if $first->[$i] ne $second->[$i];
413+
}
414+
return 1;
418415
}
419416

420417
my $passed = 0;
@@ -535,33 +532,33 @@ sub xrun_unit_tests {
535532
($tester, $test) = split(/ /, $test_cmd);
536533
$test =~ s/\"//g;
537534

538-
if ($remote && -f "${binpath}/${tester}" && ($copied_tester == 0)) {
539-
remote_push("${binpath}/${tester}", "${remote_path}/${tester}");
540-
$copied_tester = 1;
541-
}
535+
if ($remote && -f "${binpath}/${tester}" && ($copied_tester == 0)) {
536+
remote_push("${binpath}/${tester}", "${remote_path}/${tester}");
537+
$copied_tester = 1;
538+
}
542539

543540
print_time;
544541
next if isFiltered("$tester \"$test\"");
545542
my $ret;
546543

547-
print "&&&& RUNNING $tester \"$test\"\n";
548-
if ($remote) {
549-
if ($remote_android) {
550-
$cmd = "${remote_path}/${tester} \\\"${test}\\\"";
551-
} else {
552-
$cmd = "${remote_path}/${tester} \"\\\"${test}\\\"\"";
553-
}
554-
} else {
555-
$cmd = "${binpath}/${tester} \"${test}\"";
556-
}
557-
$ret = run_cmd $cmd;
558-
if ($ret != 0) {
559-
print "&&&& FAILED $tester \"$test\"\n";
560-
$failed = $failed + 1;
561-
} else {
562-
print "&&&& PASSED $tester \"$test\"\n";
563-
$passed = $passed + 1;
564-
}
544+
print "&&&& RUNNING $tester \"$test\"\n";
545+
if ($remote) {
546+
if ($remote_android) {
547+
$cmd = "${remote_path}/${tester} \\\"${test}\\\"";
548+
} else {
549+
$cmd = "${remote_path}/${tester} \"\\\"${test}\\\"\"";
550+
}
551+
} else {
552+
$cmd = "${binpath}/${tester} \"${test}\"";
553+
}
554+
$ret = run_cmd $cmd;
555+
if ($ret != 0) {
556+
print "&&&& FAILED $tester \"$test\"\n";
557+
$failed = $failed + 1;
558+
} else {
559+
print "&&&& PASSED $tester \"$test\"\n";
560+
$passed = $passed + 1;
561+
}
565562
}
566563
}
567564
sub run_unit_tests {

0 commit comments

Comments
 (0)