Getting Started Introduction to CUNY HPCC This chapter introduces the purpose of CUNY HPCC, our mission, and what we offer. What is CUNY HPCC? Mission of CUNY HPCC CUNY HPCC serves as a pivotal research and educational hub for the university. Situated on the campus of the College of Staten Island, located at 2800 Victory Boulevard, Staten Island, New York 10314, the center’s primary objective is to enhance educational opportunities and foster scientific research and discovery within the university. This is achieved through the management of state-of-the-art computing infrastructure and the provision of comprehensive research support services. Notably, CUNY HPCC offers domain-specific expertise in various aspects of computationally intensive research. CUNY is a member of the NYS consortium, Empire AI ( EAI ), as an initiative to bring New York State to the frontier of AI research. CUNY HPCC serves as a front-end for Empire AI , assisting in determining researcher eligibility for computational resources and providing an initial computing environment where emerging researchers can develop, validate, and demonstrate the significance of their research before transitioning to larger-scale AI infrastructure. Available HPC Resources CUNY HPCC provides access to advanced NVIDIA computing hardware, including the NVIDIA GH200 NVL2 , enabling researchers who are not eligible for Empire AI resources to perform computationally demanding workloads using CUNY HPCC 's local infrastructure. Definitions of Tiers, Types, Types of Jobs, GPUs, CPUs, and Memory Term Definition Master Head Node Main system used to access and manage computing resources. Subsystem A group of computing resources within the HPC environment. Tier Classification of computing resources based on their capabilities. Hybrid Cluster Multiple connected nodes supporting CPU and GPU workloads. SMP Multiple CPU cores sharing the same system memory. NUMA System where memory access speed depends on CPU and memory location. Condo Computing resources funded by specific research groups. Gateway Access point to computing systems; not intended for running jobs. Sequential Job Job that primarily runs on a single CPU core. Parallel Job Job that uses multiple CPU cores or computing nodes. OpenMP Parallel computing using multiple threads in shared memory. Nodes Number of computing servers. CPU Cores Number of processor cores per node. GPUs Number of graphics processors per node. Memory per Node Total system RAM available on each node. Memory per Core System RAM divided by the number of CPU cores. Chip Type CPU model or processor architecture. GPU Type and Interface GPU model and connection type, such as PCIe or SXM. Compute Cluster and Resources (refer to List of Nodes Available document for exact node names) Master Head Node Sub System Tier Type Type of Jobs Nodes CPU Cores GPUs Mem per node Mem per core Chip Type GPU Type and Interface Arrow Penzias Advanced Hybrid Cluster Sequential & Parallel jobs with or without GPU 62 16 2 64 GB 4 GB SB, EP 2.20 GHz K20m GPU, PCIe v2 Sequential & Parallel jobs 1 24 - 1500 GB 62 GB HL, 2.30 GHz - 36 - 768 GB 21 GB - 24 - 768 GB 32 GB - Appel NUMA Massive Parallel, sequential, OpenMP 1 384 - 11 TB 28 GB IB, 3 GHz - Cryo SMP Sequential and Parallel jobs, with GPU 1 40 8 1500 GB 37 GB SL, 2.40 GHz V100 (32GB) GPU, SXM Blue Moon Hybrid Cluster Sequential and Parallel jobs w/wo GPU 24 32 - 192 GB 6 GB SL, 2.10 GHz - 2 32 2 V100(16GB) GPU, PCIe Karle SMP Visualization, MATLAB/Mathematica 1 36* - 768 GB 21 GB HL, 2.30 GHz - Chizen Gateway No jobs allowed - CFD Condo SMP Parallel, Seq, OpenMP 1 48 2 768 GB   EM, 4.8 GHz A40, PCIe, v4 1 48 - 512 GB   ER, 4.3 GHz - PHYS Condo SMP 1 48 2 640 GB   ER, 4 GHz L40, PCIe, v4 1 48 - 512 GB   ER, 4.3 GHz - CHEM Condo SMP 1 48 2 256 GB   EM, 2.8 GHz A30, PCIe, v4 1 128 8 512 GB   ER, 2.0 GHz A100/40, SXM ASRC Condo SMP 1 48 2 256 GB   ER, 2.8 GHz A30, PCIe, v4 Note: SB = Intel(R) Sandy Bridge, HL = Intel (R) Haswell, IB = Intel (R) Ivy Bridge, SL = Intel (R) Xeon(R) Gold, ER = AMD(R) EPYC ROMA, EM = AMD(R) EPYC MILAN, EG = AMD (R) EPYC GENOA  Choosing the Right Compute Resources How to Optimize Cost to Compute for Your Workloads While CUNY HPCC offers a wide range of computing resources, not all workloads require the same level of computational power. Users are encouraged to select nodes appropriate for their workload requirements. Less demanding jobs should utilize older or lower-performance nodes when suitable, reserving newer, high-performance hardware for computationally intensive tasks. This helps prevent resource saturation and ensures efficient utilization of the cluster. Not every job requires the latest NVIDIA GPU, or a GPU at all. Choosing appropriate computing resources can help reduce queue times, prevent unnecessary resource consumption, avoid excessive project costs, and identify jobs that may be running indefinitely due to programming errors. To improve job efficiency, consider the following optimizations: Choose appropriate hardware: Use CPU-only or older GPU nodes when your workload does not require high-end hardware. Allow Slurm to select available nodes: Unless your workload requires specific hardware, avoid specifying individual nodes or unnecessarily restricting partitions. Allowing Slurm to schedule your job across a wider range of compatible nodes increases scheduling flexibility and may reduce queue times. A short example: # Avoid restricting your job to a specific node #SBATCH --nodelist=n130 # Instead, request the resources you need #SBATCH --cpus-per-task=4 #SBATCH --mem=16G #SBATCH --time=02:00:00 Request only what you need: Avoid allocating more CPU cores, GPUs, or memory than your job requires. Set reasonable time limits: Specify realistic Slurm wall-time limits to prevent runaway jobs and potentially improve scheduling opportunities. Test before scaling: Run small test jobs to identify errors before submitting large workloads. Monitor resource usage: Use Slurm accounting tools such as sacct and seff  to evaluate resource utilization. Optimize your code: Identify inefficient algorithms, unnecessary computations, and memory bottlenecks before requesting additional resources. Use job arrays: For independent tasks, consider Slurm job arrays instead of manually submitting numerous individual jobs. CUNY HPCC Pricing & Service Tiers CUNY HPCC, a not-for-profit core research facility affiliated with CUNY, is dedicated to supporting a wide range of research endeavors that necessitate advanced computational resources. CUNY HPCC’s operations are not directly or indirectly funded by CUNY or the College of Staten Island (CSI). Recovery of Operational Costs CUNY HPCC employs a cost recovery model that exclusively recoups operational expenses, without generating any profit for the HPCC. The recovered costs are meticulously calculated using comprehensive documentation of actual operational expenditures and are designed to achieve a break-even point for all CUNY users. This methodology is approved by CUNY-RF (CUNY Research Foundation) and is employed in other  CUNY research facilities. The cost recovery charging schema is based on unit-hour usage, encompassing both CPU and GPU units. Definitions for these units are provided in the accompanying table. Type of resource Unit-hour For V100, A30, A40 or L40 For A100 CPU unit 1 cpu core/hour N/A N/A GPU unit (4 cpu cores + 1 GPU allocation )/hour 4 CPU Cores + 1 GPU 4 CPU Cores + 1/7 A100 Note:  There is a minimum required amount of CPUs per GPU (4 logical CPUs per logical GPU). List of Pricing Tiers The CUNY HPCC has separate pricing tiers. The MAP pricing plan is not user opt-in, but rather it is paid by their respective affiliated universities. Please contact your university for more information about participation in CUNY HPCC  pricing plans. The three pricing tiers are as follows: MAP (Minimal Access Plan) CODP (Compute on Demand Plan) LNP (Leasing Node Plan) COP (Condo Ownership Plan) Classes MAP Pricing Overview MAP is divided into 3 separate tiers MAP-A ($5,000 per year) MAP-B ($10,000 per year) MAP-C ($25,000 per year) Within each tier, the cost is $0.015 per CPU hour and $0.09 per GPU hour across all node types and architecture. (Subject to change). Cost recovery fees for MAP users example Job CPU cores GPUs Cost/hour 1 core no GPU 1 0 $0.015/hour 16 cores no GPU 4 0 $0.24/hour  4 cores + 1 GPU 4 1 $0.15/hour 16 cores + 1 GPU 16 1   $0.33/hour 16 cores + 2 GPU 16 2   $0.42/hour 32 cores + 2 GPU 32 2   $0.66/hour 40 cores + 8 GPU 40 8 $1.32/hour It is important to note that the Minimum Access Plan (MAP) tiers A, B, and C are not all-inclusive. Therefore, even if a college pays for a higher tier, it does not guarantee unlimited use of all college employees, faculty, and students throughout the year. The MAP plan is indirectly linked to the number of hours used. Consequently, the definition of “up to 12 users for B tier” should not be interpreted as “all users up to 12 per college receive unlimited access to HPCC resources.” The number of users per tier is determined by statistical analysis of resource usage and statistics for the average duration of a job across all CUNY institutions. This means that if the number of users from a college exceeds the number of hours encoded in the MAP fee, the additional hours will be charged at the preferred rate of $0.015 per CPU hour and $0.09 per GPU thread hour. Furthermore, the MAP fee may fully cover the expenses for individuals from a given college for a year, but it may also not. This depends on the actual usage and type of resources, as well as the number of additional individuals from the same college who appear during the year. It is crucial to understand that allocation on HPCC is not restricted; our focus is solely on the completion of tasks. The free 11,540 CPU hours and 1,440 GPU hours are allocated per PI account and project and are available only for MAP-B and MAP-C (see below). These free hours are intended to facilitate project establishment. Consequently, the PI can request that a member or members of a group utilize time and explore new research opportunities. For instance, upon creating his account the PI X will receive free hours. If he/she/whatever hires a graduate student(s), they may share these free hours if they work on the same project. It is important to note that each GPU requires at least four CPU cores to operate. Therefore, if a user requests one GPU thread, it equates to one GPU thread and four CPU threads, which is equivalent to $0.15 per unit hour for that unit (Given the minimum specified above). Note that not all GPU support virtualization, so unit may include the whole GPU depend on used GPU type. CODP Pricing Overview Users from colleges that do not participate in MAP (A,B,C) are charged $0.018 per CPU hour and $0.11 per GPU hour. There is no free time associated with CODP. This means that the free 11,540 CPU hours and 1,440 GPU hours allotted to each PI account will not be applicable to users under CODP. Cost recovery fees for CODP plan Job CPU cores GPUs Cost/hour 1 core no GPU 1 0 $0.018/hour 16 cores no GPU 16 0 $0.288/hour 4 cores + 1 GPU 4 1 $0.293/hour 16 cores + 1 GPU 16 1   $0.334/hour 32 cores + 1 GPU 32 1   $0.666/hour 32 cores + 2 GPU 32 2 $0.756/hour LNP, Lease a public node(s) Users may lease a node(s) for project. That ensures them 100% access and no time or job limitations over leased resource. The minimum lease time is 30 days (one month). Longe leases (more than 90 days) have 10% discount. MAP users are charged between $172 and $950 per month (see below), depending on the type of node. Non-MAP users are charged between $249.58 and $1,399 per month, depending on the type of node. Please see below for details and examples. Fees for lease node(s) for MAP users Job (MAP users) CPU cores GPUs Cost/30 days 1 core no GPU 1 0 NA 16 cores no GPU 16 0 $172.80 32 cores no GPU 32 0 $264.96 16 cores + 2 GPU 16 1   $302.40 32 cores + 2 GPU 32 2 $475.20 40 cores + 8 GPU 40 8 $760.0 64 cores + 8 GPU 64 8 $950.40 Fees for lease a node(s) for non -MAP users Job (non-MAP users) CPU cores GPUs Cost/30 days 1 core no GPU 1 0 NA 16 cores no GPU 16 0 $249.82 32 cores no GPU 32 0 $497.64 16 cores + 1 GPU 16 2 $443.23 32 cores + 2 GPU 32 2 $886.64 40 cores + 8 GPU 40 8 $1399.68 Condo Ownership (COP) Condo describes a model where users (individuals or groups) own a node or server managed by CUNY HPCC . Only full-time faculty members are eligible to own condo nodes. Condo nodes are fully integrated into CUNY HPCC ’s infrastructure. The owners are responsible for paying only CUNY HPCC ’s infrastructure support operational flat fee, which includes only a proportional share of licenses and materials required for daily operations and an additional cost for high-throughput multi-rail interconnect. In addition, condo owners have the option to  “borrow” (upon agreement) any node(s) from the condo stack at no cost . They can also lease (for a higher fee, as detailed below) their own nodes to other non-condo users. The minimum lease duration is 30 days. The fees collected from non-condo users are used to offset the payments made by condo owners. The table below illustrates the annual fees. Note that annual fee is periodically revised and updated to reflect actual operation costs. Condo owners costs per year (example) Type of condo node CPU Cores GPU Cost/year Large hybrid SXM 128 8 $4800-$5830 Medium Hybrid 40 8 $1680-$2230 Small hybrid 48 2 $1800-$2470 Small cpu only 48 0 $1440-$1990 Medium compute 96 0 $2464.86 - $2800 Large compute 128 0 $3286.49-$3840 Condo owners can contract their node(s) to other non-condo users. Renting period is unlimited with minimum length of 30 days. The table below shows the payments the non-condo users recompense the condo owners. These fees are accumulated in owners account(s) and do offset the owner’s duties. Discount of 10% is applied for leases longer than 90 days. Type of nodes and monthly lease fees for condo nodes Type of node Renters cost/month Long term (90+ days) rent cost/month CPU/node CPU type GPU/node GPU type GPU interface Large Hybrid $1667.84 $1500.30 128 EPYC, 2.2 GHz 8 A100,A80 SXM Small Hybrid $696.48 $545.83 48 EPYC, 2.8 GHz 2 A40, A30, L40 PCIe v4 Medium Non GPU $1200.50 $1080.45 96 EPYC, 4.11GHz 48 None NA Lagre Non GPU $1500.30 $1350.27 128 EPYC, 2.0 GHz 128 None NA Classes Pricing Overview Lecturers may request access to CUNY HPCC resources for instructional purposes. The pricing for each class will be at a set fee with prorates. The fees are as follows: Undergraduate Classes, $3,000 per semester up to 10 students. This will grant students access to our Penzias cluster. Read List of Nodes Available for more information. Graduate Classes (Master's), $5,000 per semester up to 10 students. This will grant students access to our Bluemoon and Cryo clusters. Read Available HPC Resources for more information. Graduate Classes (Ph.D.), $6,000 per semester up to 10 students. This will grant student access to NVIDIA A100 GPUs in n130,131. Users over the 10 students per class limit will be billed at a surcharge cost of 15% increase per student. For example, an undergraduate class with 11 users will cost $3,350. Accounts and Access This chapter goes over eligibility criterias, account approval process, password authentication, and our AUP Eligibility and Account Requests Account Requests and Approval All CUNY HPCC account requests are subject to administrative review and approval in accordance with applicable agreements, institutional policies, and administrator discretion. Submission of an account request does not guarantee approval. Account requests are submitted through the CUNY HPCC User Management System (UMS) Portal :  https://hpchome.csi.cuny.edu Account Requirements All account requests require an existing project ID or a new project proposal. Project Proposal: Available to Principal Investigators ( PIs ) and Research Staff. Project ID (WCKey): Also known as a Workload Characterization Key, used to associate users and computing workloads with a project. Project Association: Every account must be associated with at least one WCKey. Applicants who cannot submit project proposals will generally need an existing Project ID and Advisor ID . Procedure for Requesting an Account A Principal Investigator (PI) at CUNY is defined as the lead researcher responsible for the design, execution, and management of a research project. The PI ensures compliance with regulations and oversees the project’s financial aspects. The PI is a faculty member or a qualified researcher at CUNY who has the authority to apply for research funding and manage the project. Step 1: Creation of a sponsor account (PI account) - form A or B. At this step, the PI must create an account for themselves and provide information about the project title, funding, and duration. The request for resources is not mandatory. Step 2: Upon creating the account, the PI will receive a unique code ( Project ID/WCKey ) that must be shared with members of a group (students and postdocs) who require an account on HPCC. Step 3: Members of the research group (lab) and academic collaborators can apply for an account at CUNY HPCC by using form C, D, E, or F. It is mandatory to use the code mentioned in Step 2 (from the CUNY PI) in these forms. Step 4: The PI should assign students to their project.  Required Applicant Information Applicants should prepare the following information before submitting their request: Information Description First and Last Name Applicant's legal name. EMPLID CUNY identification number; not applicable to external users. Primary Email Primary contact email. Graduate Center users should use their individual CUNY email unless instructed otherwise. Secondary Email Graduate Center email, if applicable. Academic Status Undergraduate, Master's, Ph.D., Postdoctoral, or other applicable status. Area of Study Academic discipline or research field. Campus Information CUNY campus or institutional affiliation, as requested by the form. Source of Funds Funding source, such as RFCUNY or an individual college. Required Applications Software needed for research. Used to help evaluate account eligibility; does not necessarily restrict software access. Resources Needed Estimated computing requirements. Used to assess whether the proposed workload is appropriate for CUNY HPCC. Project Name and Description Required when submitting a new project proposal. Resource Requirements and Eligibility Applicants should provide a reasonable estimate of their computing needs. Requested resources do not directly determine account usage quotas. Instead, this information helps administrators evaluate whether the proposed research would benefit from CUNY HPCC infrastructure. Projects with minimal computing requirements may be better suited to conventional computing environments. All account requests remain subject to administrative approval. Account Approval and Activation What's Next After Account Approval? You should receive an email with the subject " CUNY HPCC - NEW ACCOUNT" shortly after your account request has been approved.  The email should contain your: Username in the format of (firstname-campus-number, like allen-csi-17) WCKey (also known as Project ID) Instruction to visit https://hpcauth4.csi.cuny.edu/reset/ . Refer to this page for resetting your password . Nodes you're permitted to log in to for access to CUNY HPCC clusters. General information about usage quotas Exact citation format Password and Authentication Our administrators will NEVER ask you to disclose your password, SSH private key, or one-time authentication codes (OTP). If anyone claiming to represent CUNY HPCC requests any of these credentials, do not provide them . Immediately report the suspicious request to hpchelp@csi.cuny.edu . This applies even if the request appears to come from a CUNY employee or administrator. If you notice any abuse, please report them to the list of fraud/abuse reporting email list . You are strictly forbidden to share your login credentials with ANY person(s). Read our forbidden use policies page for more detail. Logging In to Manage Your Account All account management occurs at https://hpcauth4.csi.cuny.edu/ . Please refer to the document regarding  connecting via SSH for instructions on how to log into the HPC Clusters. Resetting Your Password To reset your password, please head to https://hpcauth4.csi.cuny.edu/reset/ . You will need to have provided a correct email at the time of registration to be able to reset your password. If you did not provide the correct email for your account, or have set the wrong email in IPA retroactively, please contact hpchelp@csi.cuny.edu where one of our support staff will assist you with setting the correct password. CUNY Fraud and Abuse Email List Fraud/Abuse Reporting Email List security@cuny.edu (Abuse reports) soc@cuny.edu (Security Operations Center) itsecurity@ccny.cuny.edu (CCNY IT security) reportspam@ccny.cuny.edu (CCNY Spam Reporting) spam@csi.cuny.edu (CSI Spam Reporting) itservices@gc.cuny.edu (Graduate Center Security Incidents) helpdesk@jjay.cuny.edu (John Jay help desk) Connecting to the Cluster This chapter goes over how users connect via SSH, how to configure SSH keys, introduces users to HPC OnDemand (our instance of Open OnDemand), and basic troubleshooting. Connecting via SSH For security reasons, CUNY only allows users to communicate using SSH. Secure Shell (abbreviated SSH) is a secure means of connecting to a remote server over an encrypted channel. SSH is a protocol designed to allow logging into a remote machine and executing commands on a remote machine using improved secure encrypted communication between two non-trusted hosts over an insecure network, while other protocols like Telnet cannot. The HPC systems located at the CUNY HPCC accept IP addresses only from the CSI campus. Users not located on the CSI campus must first log into an gateway server. The gateway server for the HPCC is chizen.csi.cuny.edu . Logging in from a Windows machine (more detailed instructions  here ) If you are using Windows machine locally you need to have SSH client installed on it. While many SSH clients may exist, CUNY strongly recommends the use of CygWin emulator. Cygwin . The popular windows clients like WinSCP or PuTTY can also be used as SSH client. Note that PuTTY , scp and WinSCP may not work as Unix scp . Once the suitable SSH client is installed, users can run it and connect to HPCC . Using the above links you may find documentations on these applications. Logging in from Unix/macOS/Linux (more detailed instructions  here ) On Unix/macOS/Linux machines, the user should use ssh to log in to the HPCC systems. chizen is the gateway to all HPCC servers. The command: $ ssh @chizen.csi.cuny.edu will log you onto this authentication server. Once logged the users must do second login to actual login node on production server. No jobs can be submitted from gateway. HPCC uses single login node so users must login to Master Head Node (MHN) as it shown on following example. NOTICE: Running production jobs on login node(s) is strictly forbidden.  Access to server may be limited or denied if abuse of above policy is recorded. All jobs must be submitted via Slurm batch system. All jobs running on login node will be killed and output data will be lost. Users who cannot open a ticket but need further help should send e-mail to hpchelp@csi.cuny.edu SSH Keys and Configuration Configuring SSH Keys for Password-less Login SSH keys must be uploaded to https://hpcauth4.csi.cuny.edu Prerequisite: Have an SSH key generated already. The most common method of doing this is by opening a terminal and entering  ssh-keygen -t ed25519 -C "email@example.com" or if you'd prefer RSA,  ssh-keygen -t rsa -b 4096 -C "email@example.com" . Find the public key. It should be located in ~/.ssh/.pub .  DO NOT ENTER YOUR PRIVATE KEY. ONLY ENTER THE KEY WITH THE EXTENSION ENDING IN  .pub Step 1. Log into https://hpcauth4.csi.cuny.edu   with your username and self assigned password. If not available, please head to https://hpcauth4.csi.cuny.edu/reset/ to reset your password. Step 2. After you have logged in, locate the field labeled "SSH public keys" and press add. Step 3. Click on add. You should be prompted with a box called "Set SSH key." Enter your SSH key and press set. Then press the save icon to the right of "Revert" and left of "Actions". Introduction to Open OnDemand What is Open OnDemand? Open OnDemand provides browser-based access to HPC resources. Depending on the installation, it may provide interfaces for managing files, submitting or monitoring jobs, and launching interactive applications. Access and available applications depend on the site's configuration and your account. Using CUNY HPCC Resources Contact HPCC support for the current portal address, sign-in instructions, and available applications. Use your own account and follow the same project, partition, QoS, storage, and acceptable-use requirements that apply to other cluster access methods. Computationally intensive work must use allocated compute resources through Slurm. For command-line access, see Connecting via SSH. If you need assistance with the portal, contact hpchelp@csi.cuny.edu without sending your password or private key. Related Pages Connecting via SSH Understanding Login and Compute Nodes Interactive Jobs and Resource Allocations X11 Forwarding Graphical Applications over SSH X11 forwarding allows a graphical application on a remote system to display on a local computer with a compatible X server. It requires an X server on the local system and forwarding to be permitted along the connection path. Performance depends on the application and network connection. On a suitably configured Unix-like client, use ssh -XY @chizen.csi.cuny.edu , followed by a forwarded SSH connection to the target system. Forwarding settings and client setup differ by operating system. Do not use the gateway or login node for computationally intensive applications. If a graphical application needs compute resources, obtain an appropriate Slurm allocation and follow current HPCC access guidance. Contact HPCC support if X11 forwarding or the required client configuration is unavailable. Related Pages Connecting via SSH Understanding Login and Compute Nodes Interactive Jobs and Resource Allocations Navigating the HPC Environment This chapter goes over basic Linux command-line commands, file transfer processes, login processes, and software modules that we offer. Linux Command-Line Basics CUNY HPCC uses Linux-based systems, primarily accessed through SSH. Most researchers only need a few basic Linux commands to navigate directories, manage files, and prepare computational jobs. Essential Linux Commands Command Description pwd Display your current directory ls List files and directories ls -lah List files with detailed information, including hidden files cd Change directories cd .. Move up one directory cd ~ Return to your home directory mkdir Create a directory cp Copy a file mv Move or rename a file rm Delete a file rm -r Delete a directory and its contents cat Display file contents nano Edit a text file (if Nano is installed) less View a file interactively du -sh Display directory size chmod Modify file permissions man Display a command's manual Warning: Files deleted using rm generally cannot be recovered. Always verify file paths before deleting research data. Basic Example # Create a directory mkdir my_project # Enter the directory cd my_project # Create a file echo "Hello CUNY HPCC!" > hello.txt # note the previous command utilized the output redirection operator '>' # Display the file cat hello.txt # Copy the file cp hello.txt backup.txt # List files ls -lh Software and Environment Modules CUNY HPCC provides scientific software through environment modules. module avail # List available modules module spider python # Search for Python modules module load # Load a software module module list # Show loaded modules module unload # Unload a module See more at the Software Modules with Lmod page . Running Computational Jobs Do not run computationally intensive workloads directly on login nodes. Submit them through Slurm instead. sbatch job.sh # Submit a job squeue -u "$USER" # Check your jobs scancel # Cancel a job sinfo # View cluster partitions For more information about resource allocation and submitting jobs, see the Running Jobs section. Understanding Login and Compute Nodes Nodes can be separated into 3 separate categories: Gateway, Cluster, and Compute nodes. Gateway Node CUNY HPCC provides remote access to the cluster through the chizen.csi.cuny.edu gateway node or the Open OnDemand portal . The gateway node serves as a secure entry point to the internal HPC environment. It limits direct exposure of cluster infrastructure to external networks and provides a controlled path for authorized users to access HPC resources. Gateway nodes are not intended for computational workloads or large file transfers. Resource-intensive jobs should be submitted through Slurm via the cluster node  arrow.csi.cuny.edu .  Users are prohibited from running jobs directly on chizen.csi.cuny.edu gateway node and  arrow.csi.cuny.edu cluster access node. Jobs running are strictly sent via Slurm through  arrow.csi.cuny.edu and any prohibited process running on non-compute nodes will be terminated and user accounts may be subject to restrictions per our Acceptable Usage Policy or admin discretion.  Cluster Node CUNY HPCC provides researchers with access to the cluster through dedicated cluster nodes . These nodes allow users to develop programs, edit and test scripts, manage files, submit computational jobs through Slurm, and monitor job progress. Our primary cluster login environment is known as arrow , part of the MHN (Master Head Node) . Note: Cluster nodes are intended for lightweight tasks and job management. Computationally intensive workloads must be submitted to compute nodes through Slurm. Compute Nodes CUNY HPCC provides compute through compute nodes. These nodes are not readily available for users to log in to directly. What users must do instead is submit jobs to these nodes via Slurm. See list of nodes page for more information about compute nodes. Home, Scratch, and Project Directories What is Scratch? /scratch is fast file system from which all jobs start. There is no quota on /scratch , but /scratch files are temporary and are not backed up . Single user cannot however take whole space with his/her data. That means users can run data sets that exceed their home space but they cannot use /scratch for storage. It is important to understand that  /scratch must be used only for submitting jobs. Output from jobs may ONLY be temporarily stored on  /scratch for up to 10 days .  Consequently in order to submit a job for execution, users must stage or mount the files required by the job to /scratch from file system /global/u using UNIX commands and/or from SR1 using iRODS commands. The latter is for mounting data directly from project space. Note that SR is slower file system so large files is better to be staged from home (/global/u) directories. Files in  /scratch are automatically relocated to local archive when their inactive residence on scratch exceeds 90 days. Local archive has limited capacity and serves as a data buffer, so strict policies of cleaning up temporary archive are in place. Upon relocation, users will get a warning (via e-mail) and must either move files to their home directory or to SR1. Note that files left in temp archive will be purged after 30 days. Users must not store valuable data or compiled codes on /scratch since these are static type of files. • A separate /scratch/ exists on each system. On PENZIAS, SALK, KARLE, and ANDY, this is a Lustre parallel file system, on HERBERT it is NFS. These /scratch directories are visible on the login and compute nodes of the system only and on the data transfer nodes, but are not shared across HPC systems. • /scratch/ is used as a high performance parallel scratch filesystem, for example, temporary files (e.g. restart files) should be stored here. • There are no quotas on /scratch/ , however any files older than 2 weeks are automatically deleted. Also, a cleanup script is scheduled to run every two weeks or whenever the /scratch disk space utilization exceeds 70%. Dot-files are generally left intact from these cleanup jobs. • /scratch space is available to all users. If the scratch space is exhausted, jobs will not be able to run. Purge any files in /scratch/ , which are no longer needed, even before the automatic deletion kicks in. • /scratch/ directory may be empty when you login, you will need to copy any files required for submitting your jobs (submission scripts, data sets) from /global/u or from SR1. Once your jobs complete copy any files you need to keep back to /global/u or SR1 and remove all files from /scratch. • Do not use /tmp for storing temporary files. The file system where /tmp resides in memory is very small and slow. Files will be regularly deleted by automatic procedures. • /scratch/ is not backed up and there is no provision for retaining data stored in these directories. What is home (/global/u)? /global/u is partition in parallel high performance Linux file system based on HPE parallel file system ( HPFS ). It holds the home directories of all individual users. When users request and are granted an allocation of HPC resources, they are assigned a and a 100 GB allocation of disk space for home directories on /global/u/ . These home directories are on global file system mounted only on login nodes. There is no local storage on nodes . That means that data can be accesses only from PFFS and login node(s) no local storage on nodes is available. Codes that write intermediate results on disk are typically slow and should be run only on condo nodes that have local disk storage. All home directories are backed up on weekly basis. What is a "project" directory? “Project” directories are managed through iRODS and accessible through iRODS commands, not standard UNIX commands. In iRODS terminology, a “collection” is the equivalent of “directory”. A “Project” is an activity that usually involves multiple users and/or many individual data files. A “Project” is normally led by a “Principal Investigator” (PI), who is a faculty member or a research scientist. The PI is the individual responsible to the University or a granting agency for the “Project” . The PI has overall responsibility for “Project” data and “Project” data management. To establish a Project, the PI completes and submits the online “Project Application Form”. Project data are stored on project space on main file system. Valuable parts of the projects must be curated by PI's and stored in HPCC long term archive. Related Pages Staging Data and Preserving Results Project Data and iRODS Backups, Archives, and Data Retention File Transfers with SCP, SFTP, and Rsync File Transfers with SCP, SFTP, and Rsync Researchers can transfer files between their local computers and CUNY HPCC using secure file transfer tools. The following methods are supported through SSH: SCP (Secure Copy): Copies individual files or directories between computers. SFTP (SSH File Transfer Protocol): Provides an interactive environment for uploading, downloading, and managing files. Rsync: Synchronizes files and directories efficiently, transferring only changed data when possible. Connections to the arrow cluster login node must pass through the CUNY HPCC gateway, chizen.csi.cuny.edu . Replace with your CUNY HPCC username in the examples below. SCP (Secure Copy) SCP is suitable for quickly transferring files between your computer and the cluster. Upload a File scp -J @chizen.csi.cuny.edu \ myfile.txt @arrow:/scratch// Download a File scp -J @chizen.csi.cuny.edu \ @arrow:/scratch//myfile.txt . The . represents the current directory on your local computer. Upload a Directory Use the -r option to recursively copy an entire directory. scp -r -J @chizen.csi.cuny.edu \ myfolder @arrow:/scratch// SFTP  (Secure File Transfer Protocol) SFTP provides an interactive interface for browsing directories and transferring files. Connect to Arrow sftp -J @chizen.csi.cuny.edu \ @arrow Once connected, navigate to your scratch directory: cd /scratch/ Common SFTP Commands Command Description put file.txt Upload a file get file.txt Download a file put -r folder Upload a directory recursively get -r folder Download a directory recursively ls List remote files lls List local files cd directory Change remote directory lcd directory Change local directory pwd Show remote working directory lpwd Show local working directory bye End the SFTP session Rsync (File Synchronization) Rsync is useful for transferring large directories, updating existing datasets, and resuming interrupted transfers. Unlike SCP, rsync can avoid retransferring files or file contents that have not changed. Upload a Directory rsync -avh --progress \ -e "ssh -J @chizen.csi.cuny.edu" \ myfolder/ @arrow:/scratch//myfolder/ Download a Directory rsync -avh --progress \ -e "ssh -J @chizen.csi.cuny.edu" \ @arrow:/scratch//myfolder/ \ ./myfolder/ Common Rsync Options Option Description -a Archive mode; preserves common file attributes and recursively copies directories -v Verbose output -h Human-readable file sizes --progress Displays transfer progress --partial Keeps partially transferred files if interrupted --dry-run Previews operations without transferring files Important: A trailing / on a source directory means rsync transfers the directory's contents rather than the directory itself. Important Notes Do not store files on the gateway node ( chizen ). It is intended for accessing internal cluster resources, not permanent file storage. Transfer files directly between your local computer and the intended cluster storage directory using the SSH gateway. Verify that sufficient storage space is available before transferring large datasets. Avoid transferring large datasets unnecessarily. Rsync is generally preferable for repeated synchronization. File transfers must comply with applicable CUNY HPCC data handling and storage policies. Related Pages Transferring Data with Globus Staging Data and Preserving Results Software Modules with Lmod Overview CUNY HPCC uses Lmod (Lua Modules) to manage software applications, compilers, libraries, and their associated environments. Lmod allows researchers to access different software packages and versions without manually configuring environment variables or installing software themselves. Loading a module automatically configures the necessary environment variables, such as PATH and LD_LIBRARY_PATH , allowing the selected software to be used. Modules can also manage dependencies and help prevent conflicts between incompatible software environments. You can view the list of available modules at the List of Available Lmod Modules page . Getting Started Viewing Available Software To list software modules currently available in your environment: module avail To search for a particular application: module spider python The module spider command searches the module hierarchy, including software that may require additional modules to become available. To display information about a specific module: module spider Available applications and versions may vary depending on the cluster environment. Loading Software To load a software package: module load To load a specific version: module load / Multiple modules can be loaded simultaneously: module load Where configured, the default version of a module may be loaded by specifying only its name. Managing Loaded Modules To view currently loaded modules: module list To unload a particular module: module unload To unload all currently loaded modules: module purge To replace one module with another: module swap To restore the system's configured default module collection: module reset Note: module purge and module reset are not equivalent. Purge removes loaded modules, while reset restores the configured default environment. Common Lmod Commands Command Description module avail List modules available in the current environment module spider Search all modules in the module hierarchy module spider Search for a specific software package module load Load a software module module unload Unload a software module module list Display currently loaded modules module show Display a module's environment configuration module swap Replace one module with another module purge Unload all modules module reset Restore the configured default environment module help Display help information for a module module save Save the current module collection module restore Restore a previously saved module collection Using Modules in Slurm Jobs Software modules can be loaded directly inside Slurm batch scripts to configure the environment required by an application. For example: #!/bin/bash #SBATCH --job-name=module_example #SBATCH --nodes=1 #SBATCH --ntasks=1 #SBATCH --time=00:10:00 #SBATCH --output=module_example_%j.out module load srun Replace and with the appropriate software module and executable. Loading modules explicitly inside job scripts helps document the software environment required to reproduce a computation. Advanced Module Management Viewing Module Configuration To inspect the environment changes made by a module: module show This may display changes to environment variables, executable search paths, and library locations. Understanding Module Dependencies Some software packages require particular compilers, MPI implementations, or supporting libraries. Lmod uses a hierarchical module system, meaning certain modules may only become available after their required dependencies are loaded. For example, if a module is not visible through module avail , try: module spider Lmod may provide instructions identifying prerequisite modules that must be loaded first. Saving and Restoring Module Collections Researchers who frequently use the same software environment can save their currently loaded modules: module save research_env To restore that environment later: module restore research_env Saved collections are useful for maintaining consistent software environments across sessions. Important: Saved module collections depend on the continued availability of the referenced software versions. Researchers should document their module versions in job scripts for reproducibility. Additional Notes Software availability and default versions may change as applications are installed or updated. Some modules require other modules to be loaded first. Loading incompatible modules may result in dependency conflicts. Researchers should verify that the required modules are available on the nodes where their jobs will execute. For applications requiring specialized dependencies or isolated environments, containerized execution using Singularity/Apptainer may be appropriate. Related Pages Finding and Running Applications Compiling C, C++, and Fortran Programs List of Available Lmod Modules List of Software Modules Available in Lmod Category Software Available Versions Default Use Computational Chemistry ABINIT 8.2.2 — Electronic structure Computational Chemistry ASE 3.18.0 — Atomistic simulations Computational Biology G-PhoCS 1.3 — Population genetics Scientific Libraries GMP 6.1.2 — Arbitrary-precision arithmetic Computational Chemistry GPAW 19.8.1 — Density functional theory Fluid Dynamics Gerris 20131206 — Fluid simulations Scientific Libraries HDF5 1.8.17, 1.10.1 — Scientific data storage Utilities LAME 3.100 — MP3 encoding Libraries & Dependencies XML-Parser 2.44_01 — XML processing Bioinformatics ABySS 1.3.7, 1.5.7 — Genome assembly Ocean Modeling ADCIRC 50_99_07 — Coastal circulation Computational Physics ADDA 1.2.0 — Light scattering Bioinformatics Anvi'o 2.0.2 — Metagenomic analysis Scientific Libraries Armadillo 9.2.7, 9.200.7 — C++ linear algebra Scientific Libraries ARPACK 3.1.5 — Eigenvalue solvers Bioinformatics AUGUSTUS 3.2.2 — Gene prediction Computational Chemistry AutoDock 4.2.6 — Molecular docking Computational Chemistry AutoDock Vina 1.1.2 — Molecular docking Bioinformatics BAMM 2.3.0 — Evolutionary rate analysis Bioinformatics BAMOVA 1.02 — Genetic variance analysis Bioinformatics BamTools 2.30, 2.5.2 — BAM file processing Fluid Dynamics Basilisk v2019 — Fluid simulations Bioinformatics BayeScan 2.1 — Population genomics Bioinformatics BEAST 1.8.4, 2.4.6 — Evolutionary analysis Bioinformatics BEAST2 2.6.0 — Bayesian phylogenetics Bioinformatics BEDOPS 2.4.40 — Genomic interval operations Bioinformatics BEDTools 2.30.0 — Genomic data analysis Bioinformatics BigWig 011921 — Genomic signal data Bioinformatics BWA 0.7.17 — DNA sequence alignment Bioinformatics BioPerl 1.6.923 — Biological data processing Bioinformatics BLAST 2.3.0 — Sequence similarity search Bioinformatics Bowtie2 2.2.6 — Sequence alignment Bioinformatics BPP 4.4.0, 4.4.1 — Species tree inference Scientific Libraries CBLAS 1.20.11 — Matrix operations Atmospheric Modeling CMAQ 5.3.2 — Air quality modeling Statistics CmdStan 2.21.0 — Bayesian modeling Computational Chemistry CP2K 2.5.1, 3.0 — Atomistic simulations Structural Biology cryoSPARC 2.11 — Cryo-EM processing Bioinformatics DIAMOND 0.7.9 — Protein alignment Utilities Doxygen 2014 — Code documentation Bioinformatics dualSP 4.2, 4.3_beta — Species tree inference Bioinformatics EA-Utils 02072017 — Sequencing utilities Development Eclipse PTP 8.1.2, 9.0 — Parallel development Scientific Libraries Eigen 3.2.8 — Linear algebra Utilities Emacs 25.1 — Text editing Bioinformatics ExaBayes 1.5 — Bayesian phylogenetics Bioinformatics ExaML 3.0.17 — Phylogenetic inference Bioinformatics FDPPDiv 20140728 — Evolutionary divergence Engineering FDS/Smokeview 6.1.11 — Fire simulation Ocean Modeling Ferret 6.96 — Ocean data analysis Libraries & Dependencies FreeType 2.5.2 — Font rendering Utilities FSplit 092214 — Fortran file splitting Scientific Libraries Global Arrays 5.3 — Distributed arrays Computational Chemistry GAMESS-US 4.14.14 — Quantum chemistry Bioinformatics GAMMA 20111212 — Gene analysis Mathematics GAP 4.6.5, 4.7.5 — Computational algebra Bioinformatics GATK 3.6 — Variant discovery Utilities GDC 1.0.1 — Dependency analysis Fluid Dynamics Gerris 09.30.16_EPYC, 12.06.13_BM, 12.06.13_EPYC, 12.06.13_PNZ — Fluid simulations Compilers GHC 7.8.2 — Haskell compilation Libraries & Dependencies glog 0.3.3 — Application logging Visualization Gnuplot 4.6.3 — Scientific plotting Computational Chemistry GPAW 1.2.0 — Density functional theory Development gperf 3.0.4 — Perfect hash generation Bioinformatics GPU-BLAST 2.2.28 — GPU sequence search Computational Chemistry GROMACS 5.1.4, 5.1.5, 2020.1_mpi — Molecular dynamics Utilities help2man 1.47.3 — Manual generation Computational Physics HOOMD 1.3.3 — GPU particle simulations Benchmarking HPL 2.1 — LINPACK benchmarking Bioinformatics HUMAnN 0.7.0 — Metabolic profiling Bioinformatics IMa2p 071717 — Population genetics Bioinformatics ipyrad 0.7.13 — RAD-seq analysis Structural Biology I-TASSER 4.2, 5.0 — Protein structure prediction Parallel Computing Kokkos 2.9.00 — Performance portability Computational Chemistry LAMMPS 03.03.20 — Molecular dynamics Libraries & Dependencies LMDB 20160810 — Embedded database Engineering LS-DYNA 6.0.0, 7.1.2, 8.0.0, 8.1.0, 9.1.0, 10.0.0 — Structural simulations Bioinformatics MAKER 2.31.8 — Genome annotation Mathematics Mathematica 10.0 — Symbolic computation Scientific Computing MATLAB R2022a — Numerical computing Bioinformatics MEME 4.11.2 — Sequence motif discovery Development Mercurial 2.8 — Version control Bioinformatics MetaPhlAn2 2.0 — Microbial profiling Bioinformatics MIGRATE 4.2.14 — Population genetics Bioinformatics MinPath 1.2 — Pathway reconstruction Bioinformatics MP-EST 1.4 — Species tree estimation Scientific Libraries MPFR 3.1.2, 3.1.4 — Precision arithmetic Bioinformatics MrBayes 3.2.7a — Bayesian phylogenetics Bioinformatics msBayes 20140305 — Comparative phylogeography Scientific Libraries MUMPS 5.1.1 — Sparse matrix solvers Bioinformatics MUSCLE 3.8.31 — Sequence alignment Bioinformatics MuTect 1.1.7 — Somatic mutation detection Computational Chemistry NAMD 2.9, 2.12, 2.13, 2.14 — Molecular dynamics Computational Chemistry NCIPlot 4.0 — Molecular interaction analysis Visualization Ncview 2.1.7 — NetCDF visualization Fluid Dynamics Nek5000 19.0_epyc — Fluid dynamics Scientific Libraries NetCDF 4.2, 4.3.2, 4.4.1, 4.4.3, 4.5.0 — Scientific data storage Structural Biology NMRPipe 20170909 — NMR data processing Computational Chemistry NRLMOL 10.0.4 — Electronic structure GPU Computing nvtop 1.0.0_git — GPU monitoring Computational Chemistry NWChem 6.6, 6.8.1 — Quantum chemistry Computational Chemistry Octopus 4.1.1, 4.1.2 — Electron dynamics Scientific Libraries OpenBLAS 2.8 — Optimized linear algebra Computer Vision OpenCV 3.1.2 — Image processing Computational Chemistry OpenEye latest — Molecular modeling Fluid Dynamics OpenFOAM 2.3.0, 5.0 — CFD simulations Computational Chemistry OpenMM 5.1 — Molecular dynamics Engineering OpenSees 5921, 5955 — Structural analysis Parallel Computing OpenSHMEM 1.0h — Parallel communication Compilers OpenWatcom 1.9 — C/C++ compilation Computational Chemistry ORCA 5.0.3 — Quantum chemistry Mathematics ParGAP 1.3.5 — Parallel algebra Development Perl 5.24.0 — Scripting Scientific Libraries PFFT 040415 — Parallel Fourier transforms Bioinformatics PHASE 2.1.1 — Haplotype inference Scientific Libraries PLASMA 2.5, 2.8 — Parallel linear algebra Computational Chemistry PLUMED 2.4 — Enhanced sampling Libraries & Dependencies PyYAML 3.10 — YAML parsing Bioinformatics PyRAD 3.0.66 — RAD-seq processing Computational Chemistry Quantum ESPRESSO ( qespresso ) 6.1 — Electronic structure Bioinformatics QIIME 1.9.1_FULL_P2.7, 1.9.1_FULL_P3.6, 1.9.1, 2.0 — Microbiome analysis Bioinformatics QIIME2 2020.2 — Microbiome analysis Computational Chemistry Quantum ESPRESSO 6.6_cpu — Electronic structure Computational Chemistry QVina — — Molecular docking Bioinformatics RAxML 0.1.0_ng, 8.2.4 — Phylogenetic inference Structural Biology RELION 1.3_gcc, 3.0, 3.6_apollo_gnu, 3.6_apollo_intel_i7 — Cryo-EM reconstruction Simulation Repast 2.1.0 — Agent-based modeling Bioinformatics rtfbsDB 012021 — Transcription factor analysis Mathematics Sage 6.2, 7.5.1, 8.1 — Mathematical computing Bioinformatics SAMtools 1.3.1, 1.14 — Sequencing file processing Development SCons 2.3.0 — Build automation Utilities Singularity 2.4.6, 3.1.1 — HPC containers Bioinformatics SNAP 11.29.13, 1.18_beta — Sequence analysis Scientific Libraries SPARSKIT 030515 — Sparse matrix operations Bioinformatics SPLATCHE 2.1 — Population genetics Bioinformatics SPRINT 1.0 — RNA editing detection Databases SQLite 3.12.1 — Embedded database Bioinformatics SRA Toolkit 2.5.2 — Sequencing data retrieval Bioinformatics Stacks 1.23 — Population genomics Statistics Stan 2.22.0 — Bayesian inference Statistics Stata 12 — Statistical analysis Bioinformatics STEM 2.0 — Gene expression analysis Bioinformatics Structurama 2.2.14 — Population structure Development SWIG 4.0.1 — Language bindings Performance Tools TAU 2.30 — Performance profiling Development Tcl 8.6.1 — Scripting Machine Learning TensorFlow r0.11 — Deep learning Utilities Texinfo 6.1 — Documentation generation Computational Chemistry Tinker 6.2, 8.8.3 — Molecular modeling Utilities tmux 2.5 — Terminal multiplexing Bioinformatics Trinity 2.1.0 — RNA-seq assembly Bioinformatics USEARCH 5.2.236, 6.0.307, 6.1.544, 7.0.1090, 8.0.1517, 8.0.1623, 9.0.2124 — Sequence clustering Utilities util-linux 2.29 — Linux system utilities Development Valgrind 3.10.1 — Memory debugging Visualization VMD 1.9.2 — Molecular visualization Bioinformatics VSEARCH 1.0.5, 1.10.2, 1.11.1 — Sequence analysis Atmospheric Modeling WRF 3.5.0, 4.3.0 — Weather modeling Visualization Xmgrace 5.1.23, 5.1.25 — Scientific plotting Structural Biology XPLOR 2.38, 2.39 — Structure refinement Running Your First Job This chapter goes over how users will utilize Slurm, the job scheduling software for CUNY HPCC cluster resources, and other HPC related information. Introduction to Slurm What is Slurm? Slurm (originally Simple Linux Utility for Resource Management ) is an open-source workload manager and job scheduling system developed and maintained by SchedMD and its community of contributors. It is widely used by High-Performance Computing (HPC) centers around the world, including CUNY HPCC . Slurm allows users to submit computational jobs, request computing resources such as CPUs, GPUs, and memory, and monitor their jobs throughout execution. Slurm is responsible for three primary functions: Resource Allocation: Allocating computing resources to users and their jobs. Job Scheduling: Managing job queues and determining when and where jobs execute based on available resources, priorities, and scheduling policies. Job Management: Launching, monitoring, and managing jobs throughout their lifecycle. Slurm also supports advanced features such as Quality of Service (QoS) policies, resource accounting, job prioritization, and resource isolation, depending on the cluster's configuration. What Does This Mean For Me? Researchers generally do not have to worry about Slurm configuration. Most jobs do not require advanced configuration. See more about running jobs at the running jobs page .   Submitting Jobs with sbatch One of Few Slurm Commands You Have to Worry About Most of the jobs at the CUNY HPCC requires only a few simple sbatch parameter tweaks to get up and running. A sample submission script would be something like #!/bin/bash #SBATCH --job-name=hello_world #SBATCH --nodes=1 #SBATCH --ntasks=1 #SBATCH --cpus-per-task=1 #SBATCH --mem=4G #SBATCH --time=00:10:00 #SBATCH --output=slurm-%j.out echo "Running on $(hostname)" echo "Job ID: $SLURM_JOB_ID" It would submit the jobs as you normally would run it. The only difference is the provisioned resources by Slurm. This allows you to not over-allocate resources, or from allowing the process to go over resource limits.   Here's a list of sbatch flags that you might use: #SBATCH --job-name=test_job # some short name for a job #SBATCH --nodes=1 # node count #SBATCH --ntasks=1 # total number of tasks across all nodes #SBATCH --cpus-per-task=1 # cpu-cores per task (>1 if multi-threaded tasks) #SBATCH --mem-per-cpu=16G # memory per cpu-core #SBATCH --time=00:10:00 # total run time limit (HH:MM:SS) #SBATCH --mail-type=begin # send email when job begins #SBATCH --mail-type=end # send email when job ends #SBATCH --mail-user= #SBATCH --qos=qosnsf #SBATCH --partition partnsf #SBATCH --output=slurm-%A.%a.out # stdout file (standart out) #SBATCH --error=slurm-%A.%a.err # stderr file (standart error) #SBATCH --array=0-3 # job array indexes 0, 1, 2, 3 If you wish to define a specific  QoS  or  partition  you'd like to use, refer to Cluster Partitions, QoS, and Resource Availability page for more details. Requesting GPU Resources CUNY HPCC supports GPU-accelerated workloads through Slurm's Generic Resource (GRES) scheduling system. To request one GPU, include: #SBATCH --gres=gpu:1 To request a GPU on a node with a particular architecture, specify a node constraint: Volta architecture: #SBATCH --gres=gpu:1 #SBATCH --constraint=VOLTA Ampere architecture: #SBATCH --gres=gpu:1 #SBATCH --constraint=AMPERE GPU availability depends on the selected partition, resource availability, and your account's permissions. You can inspect the currently advertised node features and GPU resources using: sinfo -o "%P %N %f %G" Note:  Node constraints select eligible compute nodes, not necessarily specific GPU models. Contact CUNY HPCC support if your workload requires a particular GPU model or capability. Requesting Multiple GPUs CUNY HPCC supports GPU-accelerated workloads across several NVIDIA GPU architectures. Users may request one or more GPUs on a single compute node or distribute their workload across multiple nodes. The number of GPUs requested is specified using: #SBATCH --gres=gpu: The --gres=gpu:N directive requests N GPUs per allocated node . NVIDIA Volta To request two Volta GPUs on a single node: #SBATCH --partition=partnsf #SBATCH --nodes=1 #SBATCH --gres=gpu:2 #SBATCH --constraint=VOLTA To request four Volta GPUs across two nodes: #SBATCH --partition=partnsf #SBATCH --nodes=2 #SBATCH --ntasks-per-node=2 #SBATCH --gres=gpu:2 #SBATCH --constraint=VOLTA NVIDIA Ampere To request four Ampere GPUs on a single node: #SBATCH --partition=partnsf #SBATCH --nodes=1 #SBATCH --gres=gpu:4 #SBATCH --constraint=AMPERE To request eight Ampere GPUs on a single node: #SBATCH --partition=partnsf #SBATCH --nodes=1 #SBATCH --gres=gpu:8 #SBATCH --constraint=AMPERE For the partnsf partition, node n131 currently advertises eight Ampere GPUs. NVIDIA Grace Hopper (GH200) CUNY HPCC provides access to NVIDIA GH200 systems through the partgh200 partition. To request two GPUs on a single GH200 node: #SBATCH --partition=partgh200 #SBATCH --nodes=1 #SBATCH --gres=gpu:2 To request four GPUs across two GH200 nodes: #SBATCH --partition=partgh200 #SBATCH --nodes=2 #SBATCH --ntasks-per-node=2 #SBATCH --gres=gpu:2 Nodes n102 and n103 each advertise two GPU resources. These nodes do not currently advertise an architecture-specific constraint. GPU availability and constraints Architecture Partition examples GPU counts per node NVIDIA Volta partnsf 2 or 8 NVIDIA Ampere partnsf , part130 , partchem 2 or 8 NVIDIA Grace Hopper (GH200) partgh200 2 Other / unspecified partpz , partpsy , debug Varies To inspect available GPU resources and node features: sinfo -o "%P %N %f %G" Important considerations: GPU availability depends on the partition, scheduling policies, and your account permissions. --constraint=VOLTA and --constraint=AMPERE select nodes advertising those features. Multiple GPUs on the same node do not automatically accelerate a workload. Applications must explicitly support multi-GPU execution. Multi-node GPU workloads generally require distributed execution frameworks such as MPI, PyTorch Distributed, or equivalent software. The number of GPUs requested must not exceed the available GPU resources on each selected node. Related Pages Example Submission Scripts for Different Workloads Specifying a Project ID (WCKey) Viewing Job Output and Errors Canceling Jobs with scancel Monitoring Jobs with squeue You are able to monitor your jobs with the command  squeue . Some examples you can use:  squeue # displays list of all jobs in queue/execution squeue -S -u # sorts jobs by user squeue --jobs 100,101,102 # display job information of the given job ids. squeue -u # displays jobs from a certain user   Viewing Job Output and Errors Where Is My Job Output? Slurm normally writes the standard output and standard error of a batch job to slurm-.out in the submission directory unless your script specifies different paths. When you submit with sbatch , save the job ID returned by Slurm. cat slurm-.out tail -n 50 slurm-.out You can select output filenames in the submission script: #SBATCH --output=job-%j.out #SBATCH --error=job-%j.err %j is replaced with the job ID. For arrays use %A for the array job ID and %a for the task index. Output locations must be writable and available to the job. Checking Errors Inspect the output and error files for application messages, missing input or modules, memory failures, and time-limit issues. Use squeue -j for queued or running jobs and sacct -j for accounting information when available. See Job Management and Troubleshooting for more detail. Preserve results in appropriate persistent storage after the job finishes. Related Pages Monitoring Jobs with squeue Job Management and Troubleshooting Troubleshooting Failed Jobs Canceling Jobs with scancel Canceling a Job Use scancel to cancel a job that you no longer need. Obtain its job ID from the sbatch submission output or from squeue -u $USER : squeue -u $USER scancel Canceling a pending job removes it from the queue. Canceling a running job stops it and may leave partial output; inspect the output and any checkpoints before resubmitting. Canceling an Array Task To cancel an entire job array, use scancel . To cancel one task, use scancel _ . See Monitoring and Managing Job Arrays for more information. Related Pages Monitoring Jobs with squeue Job Management and Troubleshooting Monitoring and Managing Job Arrays Research Support and Policies Acknowledging HPCC and Reporting Publications Acknowledging HPCC Researchers should acknowledge CUNY HPCC and relevant National Science Foundation support in papers and presentations that use the Center's resources. Associated grants include CNS-0958379, CNS-0855217, ACI-1126113, and OAC-2215760. Your account approval message includes the citation format applicable to your account. Use that current wording and consult HPCC support if you need to confirm an acknowledgment for a particular resource or grant. Also follow citation requirements for software and datasets used in your research. Reporting Research Results HPCC uses publication information in reporting its support for research and education. Send copies of research papers developed using HPCC resources to hpchelp@csi.cuny.edu , and contact HPCC for current reporting requirements. Related Pages Account Approval and Activation Training, Workshops, and Consultations Empire AI and CUNY HPCC Training, Workshops, and Consultations Training and Workshops CUNY HPCC provides training and seminars on topics such as HPC fundamentals, Slurm, GPU programming, and parallel programming, as well as in-person and online consultations. Getting Help Contact hpchelp@csi.cuny.edu for training schedules, registration, and consultation availability. For a job issue, open a ticket through the HPCC help portal . Include the job ID, submission script, relevant output, and a description of the problem. Do not send passwords, private keys, or one-time codes. Related Pages Acknowledging HPCC and Reporting Publications Job Management and Troubleshooting Troubleshooting Failed Jobs Account Changes and Maintenance Notices Account and Project Changes Contact HPCC support to request account closure or changes to a user's project access. Before closing an account, coordinate preservation or transfer of project files with the principal investigator and HPCC. Confirm account expiration and data retention timelines with HPCC. Maintenance Notices Read the message displayed when you log in. It may contain scheduled maintenance and important changes to the environment. Check HPCC announcements before submitting long jobs, and use application checkpoints where available. See Cluster Lifecycle and Maintenance in HPC Systems & Architecture. Related Pages Eligibility and Account Requests Cluster Lifecycle and Maintenance Backups, Archives, and Data Retention Acceptable/Forbidden Use Policies In order to provide secure and efficient operation of the HPC Center resources for all users, certain practices are discouraged and/or forbidden on HPC Center systems. Allowing Someone Else to Login and Use Your Account: The CUNY IT security policy forbids this. Users are assumed to be responsible for all the usage and activities on account in their name. Providing access to another party undermines this assumption and puts the account owner at risk for the unsupervised actions of another party. Users violating this policy may lose their accounts and/or be denied access to their files. Running Long Compute, Memory, and/or IO Intensive Processes on System Login Nodes: The Login Node resources are not intended to be used for computation beyond that required to compile, link, and organize work for batch job submission to the compute nodes. It is the Compute Nodes where computationally intensive work is expected to be run. There may be occasions when a user anticipates that a required activity on the Login Node will consume more than a typical small fraction of its resources (a large file transfer for instance). HPC Center staff should be informed through 'hpchelp@csi.cuny.edu' in advance of such activity. In general, users running processes that consume large fractions of the Login Node's compute or other resources will have those processes killed. Repeat offenders may have their accounts closed temporarily or even permanently. Running Monitoring Scripts or Process in Tight Loops that Fill Login Node Logfiles: While it is natural for users to wish to keep track of their jobs and the availability of resources on HPC Center systems, doing so by running iterative processes or scripts that can potentially fill up system log files is forbidden. An example of this would be running 'watch' along with 'qstat' in a tight one second loop for an extended period of time. This fills up log file space in system directories. Such processes will be killed. Leaving Your Application or Executable's Unix Output and Error Files Undefined in a SLURM Script: While programs that produce small output files are not a problem, one cannot anticipate what might be printed to your Unix standard error file in the event of a problem with your application. When left undefined in a SLURM script, Unix standard output and error are written to the smallish system partition where SLURM is data is stored. When this becomes 100% filled, SLURM becomes non-responsive to new job submissions. Please always include Unix redirection at the end of the executable line(s) in your SLURM scripts similar to the following: #!/bin/sh # SLURM script mpirun -np 4 mbbest ./bglobin.nex > best_mpi.out 2>&1 Here the string " > best_mpi.out 2>&1 " names an output file (1, or best_mpi.out here) and merges it with the Unix standard error file (2). These files will then be written into the working directory for your job rather than the SLURM data directory. This location will typically have much more disk space.