Skip to content

Commit

Permalink
Add flag to display maxas version info.
Browse files Browse the repository at this point in the history
  • Loading branch information
scttl committed Apr 1, 2015
1 parent 98c9744 commit bb510dd
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 9 additions & 1 deletion bin/maxas.pl
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,11 @@
print $fh MaxAs::MaxAs::Preprocess($file, $debug);
close $fh;
}
# get version information
elsif ($mode =~ /^\-?\-v/i)
{
print "$MaxAs::MaxAs::VERSION\n";
}
else
{
print "$mode\n";
Expand Down Expand Up @@ -228,9 +233,12 @@ sub usage
Optionally you can skip register reuse flag auto insertion. This allows you to observe
performance without any reuse or you can use it to set the flags manually in your sass.
maxas.pl --insert|-i [--noreuse|-n] <asm_file> <cubin_file> [new_cubin_file]
Display version information and exit:
maxas.pl --version|-v
EOF
exit(1);
}
Expand Down
2 changes: 1 addition & 1 deletion lib/MaxAs/MaxAs.pm
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use Data::Dumper;
use MaxAs::MaxAsGrammar;
use Carp;

our $VERSION = '1.01';
our $VERSION = '1.02';

# these ops need to be converted from absolute addresses to relative in the sass output by cuobjdump
my %relOffset = map { $_ => 1 } qw(BRA SSY CAL PBK PCNT);
Expand Down

0 comments on commit bb510dd

Please sign in to comment.