{"id":100,"date":"2025-05-05T11:47:51","date_gmt":"2025-05-05T09:47:51","guid":{"rendered":"http:\/\/127.0.0.1\/press\/?page_id=100"},"modified":"2025-05-20T10:29:56","modified_gmt":"2025-05-20T08:29:56","slug":"launch-job","status":"publish","type":"page","link":"https:\/\/rs.umc.edu.dz\/hpc\/index.php\/launch-job\/","title":{"rendered":"Launch \u201c Job\u201d"},"content":{"rendered":"<div data-colibri-id=\"100-c1\" class=\"style-358 style-local-100-c1 position-relative\">\n  <!---->\n  <div data-colibri-component=\"section\" data-colibri-id=\"100-c2\" id=\"about\" class=\"h-section h-section-global-spacing d-flex align-items-lg-center align-items-md-center align-items-center style-363 style-local-100-c2 position-relative\">\n    <!---->\n    <!---->\n    <div class=\"h-section-grid-container h-section-boxed-container\">\n      <!---->\n      <div data-colibri-id=\"100-c3\" class=\"h-row-container gutters-row-lg-2 gutters-row-md-2 gutters-row-2 gutters-row-v-lg-2 gutters-row-v-md-2 gutters-row-v-2 style-364 style-local-100-c3 position-relative\">\n        <!---->\n        <div class=\"h-row justify-content-lg-center justify-content-md-center justify-content-center align-items-lg-stretch align-items-md-stretch align-items-stretch gutters-col-lg-2 gutters-col-md-2 gutters-col-2 gutters-col-v-lg-2 gutters-col-v-md-2 gutters-col-v-2\">\n          <!---->\n          <div class=\"h-column h-column-container d-flex h-col-lg-auto h-col-md-auto h-col-auto style-365-outer style-local-100-c4-outer\">\n            <div data-colibri-id=\"100-c4\" class=\"d-flex h-flex-basis h-column__inner h-px-lg-2 h-px-md-2 h-px-2 v-inner-lg-2 v-inner-md-2 v-inner-2 style-365 style-local-100-c4 position-relative\">\n              <!---->\n              <!---->\n              <div class=\"w-100 h-y-container h-column__content h-column__v-align flex-basis-100 align-self-lg-center align-self-md-center align-self-center\">\n                <!---->\n                <div data-colibri-id=\"100-c5\" class=\"h-global-transition-all h-heading style-366 style-local-100-c5 position-relative h-element\">\n                  <!---->\n                  <div class=\"h-heading__outer style-366 style-local-100-c5\">\n                    <!---->\n                    <!---->\n                    <h5 class=\"\">Launch \u00a0\u00bb Job\u00a0\u00bb<\/h5>\n                  <\/div>\n                <\/div>\n                <div data-colibri-id=\"100-c7\" class=\"h-text h-text-component style-368 style-local-100-c7 position-relative h-element\">\n                  <!---->\n                  <!---->\n                  <div class=\"\">\n                    <h1><strong>Slurm Job Scheduling System<\/strong><\/h1>\n                    <p>The principle of a resource manager is to allocate compute cores according to your needs.<\/p>\n                    <p>You interact with the resource manager using the following commands:<\/p>\n                    <ul>\n                      <li><span style=\"font-family: monospace;\">sbatch<\/span>: submit a job to a queue (called&nbsp;<strong>partitions<\/strong>&nbsp;in Slurm)<\/li>\n                      <li><span style=\"font-family: monospace;\">scancel<\/span>: cancel a job<\/li>\n                      <li><span style=\"font-family: monospace;\">squeue<\/span>: view running or pending jobs<\/li>\n                      <li><span style=\"font-family: monospace;\">sinfo<\/span>: view queue\/partition status<\/li>\n                      <li><span style=\"font-family: monospace;\">srun<\/span>: run a command immediately<\/li>\n                    <\/ul>\n                    <h2>How to Launch a Job<\/h2>\n                    <p>To launch a job, create a script where you request resources and call your program. Example:<\/p>\n                    <p><span style=\"font-family: monospace;\">#!\/bin\/bash<\/span><\/p>\n                    <p><span style=\"font-family: monospace;\">#SBATCH -J test # Job name<\/span><\/p>\n                    <p><span style=\"font-family: monospace;\">#SBATCH -o job.%j.out # Stdout output file (%j = job ID)<\/span><\/p>\n                    <p><span style=\"font-family: monospace;\">#SBATCH -N 2 # Number of nodes requested<\/span><\/p>\n                    <p><span style=\"font-family: monospace;\">#SBATCH -n 16 # Number of MPI tasks<\/span><\/p>\n                    <p><span style=\"font-family: monospace;\">#SBATCH -t 01:30:00 # Run time (hh:mm:ss)<\/span><\/p>\n                    <p>\n                      <br>\n                    <\/p>\n                    <p><span style=\"font-family: monospace;\"># Launch the MPI-based executable<\/span><\/p>\n                    <p><span style=\"font-family: monospace;\">prun .\/a.out<\/span><\/p>\n                    <p>Submit the script with the&nbsp;<span style=\"font-family: monospace;\">sbatch<\/span>&nbsp;command:<\/p>\n                    <p><span style=\"font-family: monospace;\">[test@sms ~]$ sbatch job.mpi<\/span><\/p>\n                    <p><span style=\"font-family: monospace;\">Submitted batch job 339<\/span><\/p>\n                    <p>The system will return a job ID, which you can use with commands like&nbsp;<span style=\"font-family: monospace;\">scancel<\/span>&nbsp;or&nbsp;<span style=\"font-family: monospace;\">squeue<\/span>.<\/p>\n                    <h2>Monitoring Job Status<\/h2>\n                    <p>You can monitor the status of your job using:<\/p>\n                    <ul>\n                      <li><strong>List all active jobs:<\/strong><\/li>\n                      <li><span style=\"font-family: monospace;\">squeue<\/span><\/li>\n                      <li><strong>Show detailed status of a specific job:<\/strong><\/li>\n                      <li><span style=\"font-family: monospace;\">scontrol show job &lt;jobID&gt;<\/span><\/li>\n                    <\/ul>\n                    <p>\n                      <br>\n                    <\/p>\n                  <\/div>\n                <\/div>\n                <div data-colibri-id=\"100-c8\" class=\"h-x-container style-369 style-local-100-c8 position-relative h-element\">\n                  <!---->\n                  <div class=\"h-x-container-inner style-dynamic-100-c8-group style-369-spacing style-local-100-c8-spacing\"><span class=\"h-button__outer style-370-outer style-local-100-c9-outer d-inline-flex h-element\"><a h-use-smooth-scroll=\"true\" href=\"\"  data-colibri-id=\"100-c9\" class=\"d-flex w-100 align-items-center h-button justify-content-lg-center justify-content-md-center justify-content-center style-370 style-local-100-c9 position-relative\"><!----><!----> <span>get started now<\/span><\/a>\n                    <\/span>\n                  <\/div>\n                <\/div>\n              <\/div>\n            <\/div>\n          <\/div>\n          <div class=\"h-column h-column-container d-flex h-col-lg-auto h-col-md-auto h-col-auto style-371-outer style-local-100-c10-outer\">\n            <div data-colibri-id=\"100-c10\" class=\"d-flex h-flex-basis h-column__inner h-px-lg-2 h-px-md-2 h-px-2 v-inner-lg-2 v-inner-md-2 v-inner-2 style-371 style-local-100-c10 position-relative\">\n              <!---->\n              <!---->\n              <div class=\"w-100 h-y-container h-column__content h-column__v-align flex-basis-100 align-self-lg-center align-self-md-center align-self-center\">\n                <!---->\n                <div data-colibri-id=\"100-c11\" class=\"d-block style-372 style-local-100-c11 position-relative h-element\">\n                  <!---->\n                  <div class=\"h-image__frame-container-outer\">\n                    <div class=\"h-image__frame-container\">\n                      <!---->\n                      <!---->\n                      <img loading=\"lazy\" decoding=\"async\" width=\"1224\" height=\"454\" src=\"http:\/\/127.0.0.1\/press\/wp-content\/uploads\/2025\/05\/steptodown.com979963.jpg\" class=\"wp-image-279 style-372-image style-local-100-c11-image\" alt=\"\" srcset=\"https:\/\/rs.umc.edu.dz\/hpc\/wp-content\/uploads\/2025\/05\/steptodown.com979963.jpg 1224w, https:\/\/rs.umc.edu.dz\/hpc\/wp-content\/uploads\/2025\/05\/steptodown.com979963-300x111.jpg 300w, https:\/\/rs.umc.edu.dz\/hpc\/wp-content\/uploads\/2025\/05\/steptodown.com979963-1024x380.jpg 1024w, https:\/\/rs.umc.edu.dz\/hpc\/wp-content\/uploads\/2025\/05\/steptodown.com979963-768x285.jpg 768w\" sizes=\"auto, (max-width: 1224px) 100vw, 1224px\" \/>\n                      <div class=\"h-image__frame h-hide-sm style-372-frameImage style-local-100-c11-frameImage\"><\/div>\n                    <\/div>\n                  <\/div>\n                <\/div>\n              <\/div>\n            <\/div>\n          <\/div>\n        <\/div>\n      <\/div>\n    <\/div>\n  <\/div>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>Launch \u00a0\u00bb Job\u00a0\u00bb Slurm Job Scheduling System The principle of a resource manager [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"page-templates\/full-width-page.php","meta":{"footnotes":""},"class_list":["post-100","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/rs.umc.edu.dz\/hpc\/index.php\/wp-json\/wp\/v2\/pages\/100","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rs.umc.edu.dz\/hpc\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/rs.umc.edu.dz\/hpc\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/rs.umc.edu.dz\/hpc\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/rs.umc.edu.dz\/hpc\/index.php\/wp-json\/wp\/v2\/comments?post=100"}],"version-history":[{"count":5,"href":"https:\/\/rs.umc.edu.dz\/hpc\/index.php\/wp-json\/wp\/v2\/pages\/100\/revisions"}],"predecessor-version":[{"id":444,"href":"https:\/\/rs.umc.edu.dz\/hpc\/index.php\/wp-json\/wp\/v2\/pages\/100\/revisions\/444"}],"wp:attachment":[{"href":"https:\/\/rs.umc.edu.dz\/hpc\/index.php\/wp-json\/wp\/v2\/media?parent=100"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}