Skip to content

Latest commit

 

History

24 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

funrun

funrun 是一个用于提交 Slurm 任务或编译并后台运行 C++ 任务的命令行工具。

安装

pip install funrun

最小示例

在工作目录准备 main.cpp,然后运行:

funrun

工具会将任务文件复制到 ~/workbench/<时间戳>/,编译并后台启动程序;若目录中存在 config.slurm,则改为提交 sbatch config.slurm。没有 main.cppconfig.slurm 时, 命令以非零状态退出。

也可以直接使用 Python API:

from funrun.run import run

if not run():
    raise SystemExit(1)

任务文件

  • config.slurm:使用 Slurm 提交任务。
  • main.cpp:使用 g++ 编译并后台运行。
  • 同目录的 .h.sh.slurm.f90.dat.json 会随任务复制。

关于 farfarfun

farfarfun 是一个专注于实用工具库的开源组织, 涵盖云存储、数据处理、AI、多媒体与开发工具链等方向。

本项目基于 MIT 协议开源。

About

HPC 计算任务提交小工具:把当前目录的 C++/Fortran/Slurm 源码复制到带时间戳的工作目录,检测到 config.slurm 则 sbatch 提交,否则 g++ 编译后台运行

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages