From 65fb860317553427d9dde9066d26f7729f0010ea Mon Sep 17 00:00:00 2001 From: David Anderson Date: Fri, 30 Aug 2013 08:44:33 -0700 Subject: [PATCH] Condor interface: increase thread stack size --- samples/condor/boinc_gahp.cpp | 2 +- samples/condor/request_gen2 | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/samples/condor/boinc_gahp.cpp b/samples/condor/boinc_gahp.cpp index 8f590a9d01..f30dd4e6f5 100644 --- a/samples/condor/boinc_gahp.cpp +++ b/samples/condor/boinc_gahp.cpp @@ -686,7 +686,7 @@ int handle_command(char* p) { pthread_t thread_handle; pthread_attr_t thread_attrs; pthread_attr_init(&thread_attrs); - pthread_attr_setstacksize(&thread_attrs, 32768); + pthread_attr_setstacksize(&thread_attrs, 256*1024); int retval = pthread_create( &thread_handle, &thread_attrs, &handle_command_aux, cp ); diff --git a/samples/condor/request_gen2 b/samples/condor/request_gen2 index e7e9bd382a..c43a25c23d 100755 --- a/samples/condor/request_gen2 +++ b/samples/condor/request_gen2 @@ -4,10 +4,10 @@ // Generate GAHP commands for submitting/querying/fetching a batch. // Copy and paste these into a running BOINC GAHP // -// Files in1 and in2 must exist already (these are input files) +// Files in0 and in1 must exist already (these are input files) // // After fetching outputs, the following should exist: -// out1, out2: output files (upper-case versions of in1 and in2) +// outn_m: output file m of job n // stderr_out1, stderr_out2: stderr output of the 2 jobs $t = time(); @@ -15,11 +15,11 @@ $batch_name = "batch_$t"; $job_name_1 = "job1_$t"; $job_name_2 = "job2_$t"; echo " -BOINC_SUBMIT 1 $batch_name uppercase_n 2 $job_name_1 0 1 in1 in $job_name_2 0 1 in2 in 1 +BOINC_SUBMIT 1 $batch_name uppercase_n 2 $job_name_1 0 2 in0 in0 in1 in1 $job_name_2 0 2 in0 in0 in1 in1 BOINC_QUERY_BATCHES 2 1 $batch_name BOINC_ABORT_JOBS 6 $job_name_1 $job_name_2 -BOINC_FETCH_OUTPUT 3 $job_name_1 . stderr_out1 ALL 1 out out1 -BOINC_FETCH_OUTPUT 4 $job_name_2 . stderr_out2 ALL 1 out out2 +BOINC_FETCH_OUTPUT 3 $job_name_1 . stderr_out1 ALL 1 out0 out1_0 out1 out1_1 +BOINC_FETCH_OUTPUT 4 $job_name_2 . stderr_out2 ALL 1 out0 out2_0 out1 out2_1 BOINC_RETIRE_BATCH 5 $batch_name "; ?>