Changeset 49 for trunk/oarutils


Ignore:
Timestamp:
Dec 13, 2011, 9:23:31 AM (9 years ago)
Author:
g7moreau
Message:
  • General makefile width install and update
  • Cut long line
Location:
trunk/oarutils
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/oarutils/Makefile

    r48 r49  
    11
    2 CC=mpiCC
    3 CCFLAGS=-O2
    4 PODFLAG=-c 'User Contributed OAR Documentation' -r 'LEGI Trokata'
     2# General configuration
    53
    6 DESTDIR:=/opt/oar/current
     4CC         := mpiCC
     5CCFLAGS    := -O2
     6PODFLAG    := -c 'User Contributed OAR Documentation' -r 'LEGI Trokata'
    77
     8TARGET_C   := mpilauncher
     9TARGET_MAN := mpilauncher.1 oar-envsh.1 oar-dispatch.1 oar-parexec.1
     10
     11PREFIX     :=/opt/oar/current
     12PREFIX_MAN  =$(PREFIX)/man
     13
     14
     15# User specific configuration
     16
     17sinclude config.mk
     18
     19
     20# Target and rules
    821
    922.PHONY: all clean distclean install update sync
    1023
    11 all: mpilauncher mpilauncher.1 oar-envsh.1 oar-dispatch.1 oar-parexec.1
     24all: $(TARGET_C) $(TARGET_MAN)
    1225
    1326clean:
     
    2033
    2134update:
    22         @install -d -m 0755 -o root -g root $(DESTDIR)/bin
    23         @install -d -m 0755 -o root -g root $(DESTDIR)/man/man1
    24         install -m 0755 -o root -g root oar-parexec $(DESTDIR)/bin
    25         install -m 0755 -o root -g root oar-dispatch $(DESTDIR)/bin
    26         install -m 0755 -o root -g root mpilauncher $(DESTDIR)/bin
    27         install -m 0644 -o root -g root oar-parexec.1 $(DESTDIR)/man/man1
    28         install -m 0644 -o root -g root oar-dispatch.1 $(DESTDIR)/man/man1
    29         install -m 0644 -o root -g root mpilauncher.1 $(DESTDIR)/man/man1
    30         install -m 0644 -o root -g root oar-envsh.1 $(DESTDIR)/man/man1
     35        @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
    3144
    3245sync:
  • trunk/oarutils/oar-parexec

    r47 r49  
    415415These jobs could be launch by:
    416416
    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"
    418419
    419420=head2 Folder job
     
    425426A very simple job could be:
    426427
    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'"
    428430
    429431The command C<env> will be excuted in all folder F<test1>, F<test2>... after a 10s pause.
     
    442444Example with parallel small job on 2 core:
    443445
    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"
    445448
    446449=head2 Tracing and master crash
     
    451454and not re-run these job the second and next time.
    452455
    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"
    454458
    455459After a crash or an C<oardel> command,
    456460you can then re-run the same command that will end to execute the jobs in the list
    457461
    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"
    459464
    460465C<logtrace> file are just plain file.
     
    473478After being checkpointed, C<oar-parexec> do not start any new small job.
    474479
    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 \
    476483   "oar-parexec -f ./subjob.list.txt -l ./subjob.list.log"
    477484
Note: See TracChangeset for help on using the changeset viewer.