Skip to content

Instantly share code, notes, and snippets.

@shiftycow
Created April 27, 2011 20:28
Show Gist options
  • Save shiftycow/945124 to your computer and use it in GitHub Desktop.
Save shiftycow/945124 to your computer and use it in GitHub Desktop.
timing script for parallel homework
#!/usr/bin/perl
#
use strict;
print "processors,time,average temp,min temp,max temp\n";
my @threads = (1,2,3,4);
my @scheduling = (1,2,3,4);
foreach (@threads)
{
my $p = $_;
foreach(@schedules)
{
my $schedule = $_;
print `./a.out -t $p -s $schedule`;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment