Skip to content
Snippets Groups Projects
Commit abde7689 authored by Moe Jette's avatar Moe Jette
Browse files

Changes to handling job allocation, immediate flag now in job_descriptor

data structure.
parent 6ae934b9
No related branches found
No related tags found
No related merge requests found
...@@ -86,9 +86,10 @@ main (int argc, char *argv[]) ...@@ -86,9 +86,10 @@ main (int argc, char *argv[])
job_mesg. time_limit = 200; job_mesg. time_limit = 200;
job_mesg. num_procs = 4000; job_mesg. num_procs = 4000;
job_mesg. user_id = 1500; job_mesg. user_id = 1500;
job_mesg. immediate = 1;
/* the string also had Immediate */ /* the string also had Immediate */
error_code = slurm_allocate_resources ( &job_mesg , &resp_msg , true ); error_code = slurm_allocate_resources ( &job_mesg , &resp_msg );
if (error_code) { if (error_code) {
printf ("allocate error %d\n", errno); printf ("allocate error %d\n", errno);
break; break;
...@@ -104,8 +105,9 @@ main (int argc, char *argv[]) ...@@ -104,8 +105,9 @@ main (int argc, char *argv[])
job_mesg. name = ("more.tiny\0"); job_mesg. name = ("more.tiny\0");
job_mesg. num_procs = 32; job_mesg. num_procs = 32;
job_mesg. user_id = 1500; job_mesg. user_id = 1500;
job_mesg. immediate = 1;
error_code = slurm_allocate_resources ( &job_mesg , &resp_msg , true ); error_code = slurm_allocate_resources ( &job_mesg , &resp_msg );
if (error_code) { if (error_code) {
printf ("allocate error %d\n", errno); printf ("allocate error %d\n", errno);
break; break;
...@@ -121,8 +123,9 @@ main (int argc, char *argv[]) ...@@ -121,8 +123,9 @@ main (int argc, char *argv[])
job_mesg. name = ("more.queue\0"); job_mesg. name = ("more.queue\0");
job_mesg. num_procs = 32; job_mesg. num_procs = 32;
job_mesg. user_id = 1500; job_mesg. user_id = 1500;
job_mesg. immediate = 0;
error_code = slurm_allocate_resources ( &job_mesg , &resp_msg , false ); error_code = slurm_allocate_resources ( &job_mesg , &resp_msg );
if (error_code) { if (error_code) {
printf ("allocate error %d\n", errno); printf ("allocate error %d\n", errno);
break; break;
......
...@@ -44,9 +44,10 @@ main( int argc, char* argv[]) ...@@ -44,9 +44,10 @@ main( int argc, char* argv[])
job_mesg. num_procs = get_int_resp( "num_procs", 1000) ; job_mesg. num_procs = get_int_resp( "num_procs", 1000) ;
job_mesg. num_nodes = get_int_resp( "num_nodes", 400); job_mesg. num_nodes = get_int_resp( "num_nodes", 400);
job_mesg. user_id = get_int_resp( "user_id", 1500 ); job_mesg. user_id = get_int_resp( "user_id", 1500 );
job_mesg. immediate = 0;
error_code = slurm_allocate_resources ( &job_mesg , &resp_msg , false ); error_code = slurm_allocate_resources ( &job_mesg , &resp_msg );
if (error_code) if (error_code)
printf ("allocate error %s\n", slurm_strerror( error_code )); printf ("allocate error %s\n", slurm_strerror( error_code ));
else else
......
...@@ -49,9 +49,10 @@ main( int argc, char* argv[]) ...@@ -49,9 +49,10 @@ main( int argc, char* argv[])
job_mesg. num_procs = 1000; job_mesg. num_procs = 1000;
job_mesg. num_nodes = 400; job_mesg. num_nodes = 400;
job_mesg. user_id = 1500; job_mesg. user_id = 1500;
job_mesg. immediate = 0;
error_code = slurm_allocate_resources ( &job_mesg , &resp_msg , false ); error_code = slurm_allocate_resources ( &job_mesg , &resp_msg );
if (error_code) if (error_code)
printf ("allocate error %d\n", errno); printf ("allocate error %d\n", errno);
else else
......
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