Skip to content

Commit

Permalink
Modulo only for docker-desktop
Browse files Browse the repository at this point in the history
  • Loading branch information
nikosT committed Aug 28, 2024
1 parent a17f276 commit 0d33256
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion oar/lib/resource_handling.py
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,7 @@ def resources_creation(
Resource.create(
session,
network_address=f"{node_name}{int(i/(nb_core * vfactor)+1)}",
cpuset=co,
cpuset=co % 16,
core=i + 1,
cpu=i // (nb_core // nb_cpu) + 1,
state="Alive",
Expand Down

0 comments on commit 0d33256

Please sign in to comment.