User Tools

Site Tools


compute:tobegin

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
compute:tobegin [2024/08/16 11:21] bjornscompute:tobegin [2024/12/02 09:55] (current) bjorns
Line 11: Line 11:
 But user can also create their own batch file for Slurm, but the content of it must follow slurms ruleset to work and it must be executable.\\ But user can also create their own batch file for Slurm, but the content of it must follow slurms ruleset to work and it must be executable.\\
 \\ \\
-Assuming your python file is called "runSomeCode.pyand the batch file for Slurm is myJob.sh\\+Assuming your python file is called **runSomeCode.py** and the batch file for Slurm is **myJob.sh**\\
 This is the content of myJob.sh\\ This is the content of myJob.sh\\
 ''#!/bin/bash\\ ''#!/bin/bash\\
Line 21: Line 21:
 python3 runSomeCode.py\\ python3 runSomeCode.py\\
 ''\\ ''\\
-When ready user submit his job to the cluster by running the command sbatch myJob.sh+To submit this job to the cluster you run the command **sbatch myJob.sh**.\\
 This should be the result user gets\\ This should be the result user gets\\
 For user to see the status of his job issue the command squeue.\\ For user to see the status of his job issue the command squeue.\\
Line 27: Line 27:
 \\ \\
 Beware if coping (uploading) files from Windows to the cluster, you might encounter issues because of different handling of character encoding (Linux/Windows) Beware if coping (uploading) files from Windows to the cluster, you might encounter issues because of different handling of character encoding (Linux/Windows)
 +[[compute:venvpython|Python virtual]]\\
 +
compute/tobegin.1723807318.txt.gz · Last modified: 2024/10/14 14:24 (external edit)