Skip to content

Set timeout for GPMC in Python #20

@JingyiMei98

Description

@JingyiMei98

Currently we use call gpmc in python by subprocess and use communicate to set TIMEOUT
p = popen("GPMC/bin/gpmc")
try:
p.communicate(timeout = TIMEOUT)
except subprocess.TimeoutExpired:
p.terminate()

But it does not always succeed because of some bugs in subprocess.

We should use the parameter in gpmc: -cpu-lim

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions