Skip to main content

Creating and Running Custom Workflows

With the Dev application in DeepSquare, you can create and run custom workflows to harness the full potential of high-performance computing. This guide will walk you through the process of writing, creating, and running workflow files.

Prerequisites

Before getting started, ensure you have access to the DeepSquare portal and the Dev application.

Writing a Workflow File

A workflow file is a YAML-formatted file that defines resource allocation and execution instructions for your tasks. Here's a basic structure of a workflow file:

## Allow DeepSquare logging
enableLogging: true

## Allocate resources
resources:
## A task is one process. Multiple task will allocate multiple processes.
tasks: 1
## Number of cpu physical thread per process.
cpusPerTask: 1
## Memory (MB) per cpu physical thread.
memPerCpu: 1024
## GPU (graphical process unit) for the whole job.
gpus: 0

## The job content
steps:
## The steps of the jobs which are run sequentially.
- name: 'hello-world'
run:
command: echo "hello world"

To learn more about Workflow files, check out the Getting Started.

Running a Workflow in the Dev Application

  1. Log in to the DeepSquare portal and navigate to the Dev application.
  2. In the Workflow Editor, write or paste your workflow JSON.
  3. If your workflow is valid, click Submit to run the job.

Downloading Results and Review Logs

  1. In the Job Status page, locate your job based on its name.
  2. Monitor the progress of your job by checking its status.
  3. Click on the Logs button in order to read the realtime logs.
  4. Once your job completes, you can view the results, logs, and other output files in the designated output storage.

With DeepSquare's Dev application, you can efficiently create, manage, and run custom workflows to cater to a wide range of high-performance computing demands.