@@ -459,6 +459,9 @@ def create_job_command(job_json_file, project_name):
459459
460460 - `instance_types`: A list of instance types to use for the job. If not
461461 specified, the default instance types are used.
462+ - `capacity_reservation_id`: (Optional) The ID of a Capacity Reservation (e.g., Capacity Blocks for ML) to target for the job.
463+ - `task_distribution`: (Optional) The task distribution strategy (e.g., "core" or "node").
464+ - `nodes`: (Optional) The number of nodes to use for the job, typically used when `task_distribution` is "node".
462465 - Use the `epic catalog list-instances` command to see the available instance types.
463466
464467 .. code-block:: json
@@ -492,15 +495,16 @@ def create_job_command(job_json_file, project_name):
492495 "spec": {
493496 "app_code": "my-openfoam2212",
494497 "tasks": [{"reference": "main-task",
495- "partitions": 32,
498+ "partitions": 64,
499+ "nodes": 2,
496500 "runtime": 1,
497- "task_distribution": "core ",
501+ "task_distribution": "node ",
498502 "memory_gb": 16,
499- "instance_types": ["m5.xlarge "]
503+ "instance_types": ["c5n.18xlarge "]
500504 }]
501505 },
502506 "input_data": {"path": "v2212/motorBike"},
503- "app_options": {"base_command": "su sudofoam -c '. /usr/lib/openfoam/openfoam2212/etc/bashrc && ls -lta && ./Allclean && ./Allrun '"},
507+ "app_options": {"base_command": "su sudofoam -c '. /usr/lib/openfoam/openfoam2212/etc/bashrc && ls -lta && cat /tmp/hostfile && mpirun -np 64 -x PATH -x LD_LIBRARY_PATH -x WM_PROJECT_DIR -x FOAM_SETTINGS --hostfile /tmp/hostfile --use-hwthread-cpus simpleFoam -parallel | tee run.log && reconstructPar -latestTime '"},
504508 "cluster": {"queue_code": "batch-single-node"}
505509 }]
506510 }
0 commit comments