Skip to content

setting OMP_NUM_THREADS #477

Open
Open
@myoung3

Description

@myoung3

How do I set OMP_NUM_THREADS? I'm using high-core cpu and I'm trying to implement intel's recommendations here: https://github.com/IntelAI/models/blob/master/docs/general/tensorflow/GeneralBestPractices.md

As far as I can tell, I can set inter_op_parallelism_threads via tf$config.threading$set_intra_op_parallelism_threads(32L)

and channels first via k_set_image_data_format('channels_first') but since OMP_NUM_THREADS is an environment variable I'm not sure how to set it such that the python shell inherits it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsImprovements to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions