Skip to content

Number of CPU threads for the python process #16894

@mahmoodn

Description

@mahmoodn

For a test, I didn't use --cuda in order to run a cpu version. While the CPU has 8 physical cores (16 threads), I see 400% cpu utilization for the python process.

Is that normal? How can I control the number of threads?
I use time python main.py --epochs 1 in word_language_model

Metadata

Metadata

Assignees

No one assigned

    Labels

    module: cpuCPU specific problem (e.g., perf, algorithm)module: multithreadingRelated to issues that occur when running on multiple CPU threads

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions