Skip to content

Add option to the instantiation of a module. #618

@stevemcmillan

Description

@stevemcmillan

Is your feature request related to a problem? Please describe.
Not really a problem, but something I'd like to have.

Describe the solution you'd like
I have written code in ph4 to allow the user to specify the number of GPUs for each worker in the parallel code to use (requires sapporo_2). Currently I pass that number as a parameter:

ph4.parameters.n_gpu = xxx. 

I'd like to have the alternative of including it in the instantiation of ph4:

grav = ph4(number_of_workers = 3, mode = "gpu", number_of_gpus = 2)

Describe alternatives you've considered
I can do it using parameters, but the init function for ph4 is opaque to me, so advice on how to modify it would be appreciated.

Additional context
Add any other context or logfiles about the feature request here.
N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: frameworkIssues related to the AMUSE framework: rfi, amusifier, MPI issueskind: feature requestThe issue requests a feature that AMUSE does not currently have

    Type

    No type

    Projects

    Status

    Feature Request

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions