Skip to content

Commit

Permalink
#48: adding Parsl translator
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelfsilva committed Oct 31, 2024
1 parent 135495b commit 13f046c
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 3 deletions.
Binary file modified bin/cpu-benchmark
Binary file not shown.
17 changes: 16 additions & 1 deletion wfcommons/wfbench/translator/parsl.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
"""Modules"""
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (c) 2024 The WfCommons Team.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.

import logging
from typing import Union, Optional
from collections import defaultdict, deque
Expand Down Expand Up @@ -53,6 +62,12 @@ def __init__(self,
self.task_level_map[level].append(task_name)

def translate(self, output_folder: pathlib.Path) -> None:
"""
Translate a workflow benchmark description (WfFormat) into an actual workflow application.
:param output_folder: The path to the folder in which the workflow benchmark will be generated.
:type output_folder: pathlib.Path
"""
# Parsing each of the WfFormat Tasks as bash apps in Parsl
codelines = self._parsl_wftasks_codelines()

Expand Down
15 changes: 13 additions & 2 deletions wfcommons/wfbench/translator/templates/parsl_template.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,18 @@
"""Modules"""
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (c) 2024 The WfCommons Team.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.

import parsl

from pathlib import Path
from typing import List
import parsl

from parsl.app.app import bash_app
from parsl.config import Config
from parsl.executors import HighThroughputExecutor
Expand Down

0 comments on commit 13f046c

Please sign in to comment.