Parallelizing code to CPU cores #7289
Unanswered
marcosrdac
asked this question in
Q&A
Replies: 1 comment 1 reply
-
I think the flag must be set before you load jax |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, huys,
I'm trying to make my code parallel at the level of my CPU cores. #5506 and #2714 talk about this environment variable that needs to be set so that jax treats each CPU core as a separate device. I tried doing it both from shell, with an
export
statement, and from python'sos
module (approach written below). This is a simple code that runs fine when I set a core for work:but when I try to use more than one of them (I'm using an i5, with 4 cores) I keep getting an error, which is the same I get when no flag is set at all:
Full error message:
I wonder what I'm doing wrong. Do you have any idea?
EDIT: What's yet more odd is... I just tried it on a i7 and it works fine there.
Beta Was this translation helpful? Give feedback.
All reactions