Skip to content
Snippets Groups Projects
Commit 364183ff authored by Huzaifa's avatar Huzaifa
Browse files

Backing up Huzaifa's GPU Profiler

parent 9ffb63b8
No related branches found
No related tags found
No related merge requests found
File added
File added
File added
File added
File added
File added
#!/usr/bin/perl
use strict;
use warnings;
my $time;
my $iterations = 100;
# FP32
print "############### FP32 ##############\n";
print "Running Lenet\n";
$time = `date`;
print $time;
`~/awesome_profiler/pp ./lenet_tanh $iterations lenet-fp32.csv`;
print "Running FC2\n";
$time = `date`;
print $time;
`~/awesome_profiler/pp ./fc2_clipped $iterations fc2-fp32.csv`;
print "Running FC3\n";
$time = `date`;
print $time;
`~/awesome_profiler/pp ./fc3_clipped $iterations fc3-fp32.csv`;
print "Running FC4\n";
$time = `date`;
print $time;
`~/awesome_profiler/pp ./fc4_clipped $iterations fc4-fp32.csv`;
print "Running CIFAR\n";
$time = `date`;
print $time;
`~/awesome_profiler/pp ./cifar_keras $iterations cifar-fp32.csv`;
# FP16
print "############### FP16 ##############\n";
print "Running Lenet\n";
$time = `date`;
print $time;
`~/awesome_profiler/pp ./lenet_tanh_half $iterations lenet-fp16.csv`;
print "Running FC2\n";
$time = `date`;
print $time;
`~/awesome_profiler/pp ./fc2_half $iterations fc2-fp16.csv`;
print "Running FC3\n";
$time = `date`;
print $time;
`~/awesome_profiler/pp ./fc3_half $iterations fc3-fp16.csv`;
print "Running FC4\n";
$time = `date`;
print $time;
`~/awesome_profiler/pp ./fc4_half $iterations fc4-fp16.csv`;
print "Running CIFAR\n";
$time = `date`;
print $time;
`~/awesome_profiler/pp ./cifar_keras_half $iterations cifar-fp16.csv`;
#!/usr/bin/perl
use strict;
use warnings;
my $time;
my $iterations = 100;
my @networks = ("alexnet", "alexnet2", "resnet18", "vgg16");
# FP32
print "############### FP32 ##############\n";
foreach my $network (@networks) {
print "Running $network\n";
$time = `date`;
print $time;
`~/awesome_profiler/pp ./${network}_cifar10 $iterations ${network}_fp32.csv`;
}
# FP16
print "############### FP16 ##############\n";
foreach my $network (@networks) {
print "Running $network\n";
$time = `date`;
print $time;
`~/awesome_profiler/pp ./${network}_cifar10_half $iterations ${network}_fp16.csv`;
}
#!/usr/bin/perl
use strict;
use warnings;
my $time;
my $iterations = 100;
my @pipelines = ("pipeline_GEMO", "pipeline_GEO", "pipeline_GEOM", "pipeline_GSM", "pipeline_GSME");
# FP32
print "############### FP32 ##############\n";
foreach my $pipeline (@pipelines) {
print "Running $pipeline\n";
$time = `date`;
print $time;
`~/awesome_profiler/pp ./${pipeline} $iterations ${pipeline}_fp32.csv`;
}
# FP16
print "############### FP16 ##############\n";
foreach my $pipeline (@pipelines) {
print "Running $pipeline\n";
$time = `date`;
print $time;
`~/awesome_profiler/pp ./${pipeline}_half $iterations ${pipeline}_fp16.csv`;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment