# Difference between revisions of "LoadLeveler Chain Jobs"

Now all the blocks on BlueGene are dynamic blocks. If you want to run jobs one after the other, you should use the following tricks.

Suppose you want to run 3 minimization steps which are dependent. For step 2 and 3, dependency command should be used. See the example.

1. common
2. @ job_type = bluegene
3. @ job_name = min
4. @ class = normaldyn
5. @ initialdir = /gpfs/home2/yulinh/RCR/projects_BG/inactive_ERBB_lapatinib/inactive_HER2_temp1XKK_lapatinib/N003_mdwat_namd_run2
6. @ wall_clock_limit = 00:20:00
7. step 1
8. @ step_name = \$(job_name)_01
9. @ executable = mpirun32
10. @ bg_size = 512
11. @ arguments = -mode VN -np 1024 -exe path/namd2 -cwd "path" -args "01mi.in"
12. @ input = /dev/null
13. @ output = mi.\$(step_name).out
14. @ error = mi.err.\$(step_name)
16. @ queue
17. step 2
18. @ step_name = \$(job_name)_02
19. @ dependency = (\$(job_name)_01 == 0)
20. @ bg_size = 512
21. @ arguments = -mode VN -np 1024 -exe path/namd2 -cwd "path" -args "02mi.in"
22. @ input = /dev/null
23. @ output = mi.\$(step_name).out
24. @ error = mi.err.\$(step_name)
{"ft_lang_label":"__label__en","ft_lang_prob":0.55020016,"math_prob":0.8217135,"size":2519,"snap":"2021-04-2021-17","text_gpt3_token_len":892,"char_repetition_ratio":0.16023856,"word_repetition_ratio":0.6086956,"special_character_ratio":0.4323144,"punctuation_ratio":0.125,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9523229,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2021-01-25T05:21:55Z\",\"WARC-Record-ID\":\"<urn:uuid:23a06e14-97c4-439a-824d-e98792f9f64a>\",\"Content-Length\":\"22778\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:e203bdb8-30c5-4014-8511-b1a3d0f0db13>\",\"WARC-Concurrent-To\":\"<urn:uuid:6cf04902-8318-4dc7-ae83-3d1fe45be3b0>\",\"WARC-IP-Address\":\"129.49.108.185\",\"WARC-Target-URI\":\"https://ringo.ams.stonybrook.edu/index.php?title=LoadLeveler_Chain_Jobs&diff=prev&oldid=5258\",\"WARC-Payload-Digest\":\"sha1:HDGRYYPIPYBLXW4TY7FGUJNMYEW7R3JX\",\"WARC-Block-Digest\":\"sha1:XK4GFFRCWP26TAI3IOH4HWJ57B5L6YGR\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2021/CC-MAIN-2021-04/CC-MAIN-2021-04_segments_1610703564029.59_warc_CC-MAIN-20210125030118-20210125060118-00685.warc.gz\"}"}