Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Executor fails in some cases #35

Open
kessler-frost opened this issue Sep 21, 2022 · 0 comments
Open

Executor fails in some cases #35

kessler-frost opened this issue Sep 21, 2022 · 0 comments

Comments

@kessler-frost
Copy link
Member

For the most part, the executor seems to be running fine but there are some cases where the workflow fails. One of these cases is:

import numpy as np

import covalent as ct
from  covalent_awsbatch_plugin.awsbatch import AWSBatchExecutor

N = 1
STALL = 1e5
X = 20

executor = AWSBatchExecutor()

@ct.electron(executor=executor)
def matrix_workload(mat_1, mat_2, stall=STALL, x=X):

    i = 0
    while i < stall:
        x * x
        i += 1

    return mat_1

@ct.lattice
def inflate(mat_1, dim=3):
    mat_2 = np.random.default_rng().integers(3, size=(dim, dim))
    return matrix_workload(mat_1, mat_2)

mat_1 = np.random.default_rng().integers(10, size=(3, 3))
dispatch_id = ct.dispatch(inflate)(mat_1)

Not sure why it fails but the status returned in the logs is FAILED.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant