$p->name $p->name $p->resource_share $p->name $p->name "; if ($p->has_cpu) { echo " $p->name $p->cpu_ncpus $p->cpu_flops ".$p->name."_cpu $p->name 114 $p->cpu_job_size 1e18 ".$p->name."_cpu ".$p->name."_cpu $p->cpu_latency 0 "; } if ($p->has_gpu) { echo " $p->name $p->gpu_ncpus cuda CUDA 1 $p->gpu_flops ".$p->name."_gpu $p->name 114 $p->gpu_job_size 1e18 ".$p->name."_gpu ".$p->name."_gpu cuda $p->gpu_latency 0 "; } } function write_state($pp) { echo " 4 2e9 1 100e9 1 1.000000 1 1 "; foreach ($pp as $p) { write_project($p); } echo " "; } function big_scenario() { $pp = array(); for ($i=0; $i<1; $i++) { $p = new PROJECT; $p->name = "C_$i"; $p->resource_share = 100; $p->has_cpu = true; $p->cpu_ncpus = 1; $p->cpu_flops = 1e9; $p->cpu_job_size = 1000e9; $p->cpu_latency = 864000; $pp[] = $p; } for ($i=0; $i<1; $i++) { $p = new PROJECT; $p->name = "G_$i"; $p->resource_share = 100; $p->has_gpu = true; $p->gpu_ncpus = 1; $p->gpu_flops = 10e9; $p->gpu_job_size = 10000e9; $p->gpu_latency = 864000; $pp[] = $p; } for ($i=0; $i<1; $i++) { $p = new PROJECT; $p->name = "CG_$i"; $p->resource_share = 100; $p->has_gpu = true; $p->gpu_ncpus = 1; $p->gpu_flops = 1e9; $p->gpu_job_size = 10000e9; $p->gpu_latency = 864000; $p->has_cpu = true; $p->cpu_ncpus = 1; $p->cpu_flops = 1e9; $p->cpu_job_size = 10000e9; $p->cpu_latency = 864000; $pp[] = $p; } write_state($pp); } big_scenario(); ?>