{"id":6175,"date":"2022-06-16T16:39:40","date_gmt":"2022-06-16T13:39:40","guid":{"rendered":"https:\/\/hpc-education.unn.ru\/?page_id=6175"},"modified":"2022-06-16T16:39:40","modified_gmt":"2022-06-16T13:39:40","slug":"%d0%b7%d0%b0%d0%bf%d1%83%d1%81%d0%ba-%d1%81%d0%ba%d1%80%d0%b8%d0%bf%d1%82%d0%be%d0%b2-python","status":"publish","type":"page","link":"https:\/\/hpc-education.unn.ru\/ru\/%d1%80%d0%b5%d1%81%d1%83%d1%80%d1%81%d1%8b\/%d0%b8%d0%bd%d1%81%d1%82%d1%80%d1%83%d0%ba%d1%86%d0%b8%d1%8f\/%d0%b7%d0%b0%d0%bf%d1%83%d1%81%d0%ba-%d1%81%d0%ba%d1%80%d0%b8%d0%bf%d1%82%d0%be%d0%b2-python","title":{"rendered":"\u0417\u0430\u043f\u0443\u0441\u043a \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432, \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0445 \u043d\u0430 \u044f\u0437\u044b\u043a\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f Python"},"content":{"rendered":"<p>\u041f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f python 2.7.5. \u0415\u0441\u043b\u0438 \u0432\u044b \u0445\u043e\u0442\u0438\u0442\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0434\u0440\u0443\u0433\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e python, \u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435:<\/p>\n<ul>\n<li>\u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u0441\u043a\u0440\u0438\u043f\u0442, \u0444\u043e\u0440\u043c\u0438\u0440\u0443\u044e\u0449\u0438\u0439 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0435 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0435 \u0434\u043b\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0434\u0440\u0443\u0433\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 python (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, setvars.sh \u0438\u0437 \u043f\u0430\u043a\u0435\u0442\u043e\u0432 Intel);<\/li>\n<li>\u0441\u0442\u0430\u0440\u0442\u043e\u0432\u0430\u0442\u044c \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0435 miniconda, \u0432\u043a\u043b\u044e\u0447\u0430\u044e\u0449\u0435\u0435 \u043d\u0443\u0436\u043d\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e python (\u043c\u043e\u0434\u0443\u043b\u044c miniconda3-py39_4.11.0 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u0443\u044e miniconda \u0441 python) ;<\/li>\n<li>\u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c miniconda \u0441 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0435\u0439 python \u0432 \u0441\u0432\u043e\u0435\u043c \u0434\u043e\u043c\u0430\u0448\u043d\u0435\u043c \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0435 \u0438 \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u0435\u0435 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0435.<\/li>\n<\/ul>\n<p>\u0414\u0430\u043b\u0435\u0435 \u0437\u0430\u043f\u0443\u0441\u043a \u0437\u0430\u0434\u0430\u043d\u0438\u044f \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u043e\u0431\u044b\u0447\u043d\u044b\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u043a\u043e\u043c\u0430\u043d\u0434 srun \u0438 sbatch.<\/p>\n<pre>user@master ~$ echo 'from datetime import datetime\r\nnow = datetime.now()\r\ncurrent_time = now.strftime(\"%H:%M:%S\")\r\nprint(\"Current Time is :\", current_time)\r\nprint(\"Hello World!\")' &gt;hello.py\r\nuser@master ~$ . \/common\/intel\/oneAPI_Base_Toolkit\/2022.1.2.146\/setvars.sh intel64\r\nuser@master ~$ srun -N 1 -p gpu -t 10 python hello.py\r\n('Current Time is :', '13:35:57')\r\nHello World!<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u041f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f python 2.7.5. \u0415\u0441\u043b\u0438 \u0432\u044b \u0445\u043e\u0442\u0438\u0442\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0434\u0440\u0443\u0433\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e python, \u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435: \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u0441\u043a\u0440\u0438\u043f\u0442, \u0444\u043e\u0440\u043c\u0438\u0440\u0443\u044e\u0449\u0438\u0439 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0435 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0435 \u0434\u043b\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0434\u0440\u0443\u0433\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 python (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, setvars.sh \u0438\u0437 \u043f\u0430\u043a\u0435\u0442\u043e\u0432 Intel); \u0441\u0442\u0430\u0440\u0442\u043e\u0432\u0430\u0442\u044c \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0435 miniconda, \u0432\u043a\u043b\u044e\u0447\u0430\u044e\u0449\u0435\u0435 \u043d\u0443\u0436\u043d\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e python (\u043c\u043e\u0434\u0443\u043b\u044c miniconda3-py39_4.11.0 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 &hellip; <a href=\"https:\/\/hpc-education.unn.ru\/ru\/%d1%80%d0%b5%d1%81%d1%83%d1%80%d1%81%d1%8b\/%d0%b8%d0%bd%d1%81%d1%82%d1%80%d1%83%d0%ba%d1%86%d0%b8%d1%8f\/%d0%b7%d0%b0%d0%bf%d1%83%d1%81%d0%ba-%d1%81%d0%ba%d1%80%d0%b8%d0%bf%d1%82%d0%be%d0%b2-python\">\u0427\u0438\u0442\u0430\u0442\u044c \u0434\u0430\u043b\u0435\u0435 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":40,"featured_media":0,"parent":6126,"menu_order":1,"comment_status":"closed","ping_status":"closed","template":"","meta":{"ngg_post_thumbnail":0},"_links":{"self":[{"href":"https:\/\/hpc-education.unn.ru\/ru\/wp-json\/wp\/v2\/pages\/6175"}],"collection":[{"href":"https:\/\/hpc-education.unn.ru\/ru\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/hpc-education.unn.ru\/ru\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/hpc-education.unn.ru\/ru\/wp-json\/wp\/v2\/users\/40"}],"replies":[{"embeddable":true,"href":"https:\/\/hpc-education.unn.ru\/ru\/wp-json\/wp\/v2\/comments?post=6175"}],"version-history":[{"count":1,"href":"https:\/\/hpc-education.unn.ru\/ru\/wp-json\/wp\/v2\/pages\/6175\/revisions"}],"predecessor-version":[{"id":6176,"href":"https:\/\/hpc-education.unn.ru\/ru\/wp-json\/wp\/v2\/pages\/6175\/revisions\/6176"}],"up":[{"embeddable":true,"href":"https:\/\/hpc-education.unn.ru\/ru\/wp-json\/wp\/v2\/pages\/6126"}],"wp:attachment":[{"href":"https:\/\/hpc-education.unn.ru\/ru\/wp-json\/wp\/v2\/media?parent=6175"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}