Changeset 49 for trunk/oarutils
- Timestamp:
- Dec 13, 2011, 9:23:31 AM (13 years ago)
- Location:
- trunk/oarutils
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/oarutils/Makefile
r48 r49 1 1 2 CC=mpiCC 3 CCFLAGS=-O2 4 PODFLAG=-c 'User Contributed OAR Documentation' -r 'LEGI Trokata' 2 # General configuration 5 3 6 DESTDIR:=/opt/oar/current 4 CC := mpiCC 5 CCFLAGS := -O2 6 PODFLAG := -c 'User Contributed OAR Documentation' -r 'LEGI Trokata' 7 7 8 TARGET_C := mpilauncher 9 TARGET_MAN := mpilauncher.1 oar-envsh.1 oar-dispatch.1 oar-parexec.1 10 11 PREFIX :=/opt/oar/current 12 PREFIX_MAN =$(PREFIX)/man 13 14 15 # User specific configuration 16 17 sinclude config.mk 18 19 20 # Target and rules 8 21 9 22 .PHONY: all clean distclean install update sync 10 23 11 all: mpilauncher mpilauncher.1 oar-envsh.1 oar-dispatch.1 oar-parexec.124 all: $(TARGET_C) $(TARGET_MAN) 12 25 13 26 clean: … … 20 33 21 34 update: 22 @install -d -m 0755 -o root -g root $( DESTDIR)/bin23 @install -d -m 0755 -o root -g root $( DESTDIR)/man/man124 install -m 0755 -o root -g root oar-parexec $( DESTDIR)/bin25 install -m 0755 -o root -g root oar-dispatch $( DESTDIR)/bin26 install -m 0755 -o root -g root mpilauncher $( DESTDIR)/bin27 install -m 0644 -o root -g root oar-parexec.1 $( DESTDIR)/man/man128 install -m 0644 -o root -g root oar-dispatch.1 $( DESTDIR)/man/man129 install -m 0644 -o root -g root mpilauncher.1 $( DESTDIR)/man/man130 install -m 0644 -o root -g root oar-envsh.1 $( DESTDIR)/man/man135 @install -d -m 0755 -o root -g root $(PREFIX)/bin 36 @install -d -m 0755 -o root -g root $(PREFIX_MAN)/man1 37 install -m 0755 -o root -g root oar-parexec $(PREFIX)/bin 38 install -m 0755 -o root -g root oar-dispatch $(PREFIX)/bin 39 install -m 0755 -o root -g root mpilauncher $(PREFIX)/bin 40 install -m 0644 -o root -g root oar-parexec.1 $(PREFIX_MAN)/man1 41 install -m 0644 -o root -g root oar-dispatch.1 $(PREFIX_MAN)/man1 42 install -m 0644 -o root -g root mpilauncher.1 $(PREFIX_MAN)/man1 43 install -m 0644 -o root -g root oar-envsh.1 $(PREFIX_MAN)/man1 31 44 32 45 sync: -
trunk/oarutils/oar-parexec
r47 r49 415 415 These jobs could be launch by: 416 416 417 oarsub -n test -l /core=6,walltime=04:00:00 "oar-parexec -f ./subjob.list.txt" 417 oarsub -n test -l /core=6,walltime=04:00:00 \ 418 "oar-parexec -f ./subjob.list.txt" 418 419 419 420 =head2 Folder job … … 425 426 A very simple job could be: 426 427 427 oarsub -n test -l /core=6,walltime=04:00:00 "oar-parexec -d ./subjob.d -c 'sleep 10; env'" 428 oarsub -n test -l /core=6,walltime=04:00:00 \ 429 "oar-parexec -d ./subjob.d -c 'sleep 10; env'" 428 430 429 431 The command C<env> will be excuted in all folder F<test1>, F<test2>... after a 10s pause. … … 442 444 Example with parallel small job on 2 core: 443 445 444 oarsub -n test -l /core=6,walltime=04:00:00 "oar-parexec -j 2 -f ./subjob.list.txt" 446 oarsub -n test -l /core=6,walltime=04:00:00 \ 447 "oar-parexec -j 2 -f ./subjob.list.txt" 445 448 446 449 =head2 Tracing and master crash … … 451 454 and not re-run these job the second and next time. 452 455 453 oarsub -n test -l /core=6,walltime=04:00:00 "oar-parexec -f ./subjob.list.txt -l ./subjob.list.log" 456 oarsub -n test -l /core=6,walltime=04:00:00 \ 457 "oar-parexec -f ./subjob.list.txt -l ./subjob.list.log" 454 458 455 459 After a crash or an C<oardel> command, 456 460 you can then re-run the same command that will end to execute the jobs in the list 457 461 458 oarsub -n test -l /core=6,walltime=04:00:00 "oar-parexec -f ./subjob.list.txt -l ./subjob.list.log" 462 oarsub -n test -l /core=6,walltime=04:00:00 \ 463 "oar-parexec -f ./subjob.list.txt -l ./subjob.list.log" 459 464 460 465 C<logtrace> file are just plain file. … … 473 478 After being checkpointed, C<oar-parexec> do not start any new small job. 474 479 475 oarsub -t idempotent -n test -l /core=6,walltime=04:00:00 --checkpoint 720 \ 480 oarsub -t idempotent -n test \ 481 -l /core=6,walltime=04:00:00 \ 482 --checkpoint 720 \ 476 483 "oar-parexec -f ./subjob.list.txt -l ./subjob.list.log" 477 484
Note: See TracChangeset
for help on using the changeset viewer.