Hello,
I want to submit a job "helloworld.pl" using the Perl API. What I normally do 
is just "sudo srun helloworld.pl". How would you do this using the API? The 
example we found is not working. 
#!/usr/bin/perl -w
use Test::More tests => 2;
use Slurm;
print "Hello, World!";


my ($resp, $job_desc, $jobid, $hostlist, $callbacks, $thr, $port, $file);


my $slurm = Slurm::new();
ok(defined $slurm,  "create slurm object with default configuration");


$job_desc = {
    min_nodes => 1,
    user_id => $>,
    num_tasks => 1,
    script => "helloworld.pl"
};


$resp = $slurm->allocate_resources($job_desc);
ok(defined $resp, "allocate resources") or diag("allocate_resources: " . 
$slurm->strerror());


The error message:
perl: error: slurm_receive_msg: Zero Bytes were transmitted or received
not ok 2 - allocate resources

And how do you use:$resp = $slurm->submit_batch_job($job_desc_msg);
What is $job_desc_msg ?

Thanks and kind regardsSabahattin Giritli

                                          

Reply via email to