summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authordolphin <dolphin@lindenlab.com>2013-10-04 09:19:25 -0700
committerdolphin <dolphin@lindenlab.com>2013-10-04 09:19:25 -0700
commitc2c060d4401d3a79a9ae0076af0c9b86d14f7f37 (patch)
treeb7efcf3c2e38aa9de488342b3379b4bde0a6bc47 /scripts
parentd44c85c6dc575c0c67019ce1bffecfaa5bc275d1 (diff)
parentf7158bc5afcec1da8b9d2d5a4ed86921e62d4959 (diff)
Merge with 3.6.7
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/gpu_table_tester4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/gpu_table_tester b/scripts/gpu_table_tester
index 9bc958636d..0fe3e9e8f7 100755
--- a/scripts/gpu_table_tester
+++ b/scripts/gpu_table_tester
@@ -73,6 +73,10 @@ die "Must specify a --gpu-table <gpu_table.txt> value"
open(GPUS, "<$GpuTable")
|| die "Failed to open gpu table '$GpuTable':\n\t$!\n";
+my $FirstLine = <GPUS>;
+die "First line of gpu table does not begin with '//GPU_TABLE'"
+ unless $FirstLine =~ m|^//GPU_TABLE|;
+
# Parse the GPU table into these tables, indexed by the name
my %NameLine; # name -> line number on which a given name was found (catches duplicate names)
my %RecognizerLine; # name -> line number on which a given name was found (catches duplicate names)