Skip to content

Commit dfaec2c

Browse files
authored
Make sure env is correct with addprocs
1 parent 515ca71 commit dfaec2c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

00_intro_JUDI.ipynb

+3
Original file line numberDiff line numberDiff line change
@@ -1208,6 +1208,9 @@
12081208
"ENV[\"OMP_PROC_BIND\"] = \"close\"\n",
12091209
"ENV[\"OMP_NUM_THREADS\"] = \"$(div(nthread, nw))\"\n",
12101210
"addprocs(nw; lazy=false)\n",
1211+
"# This is becuase of how the server is setup and isn't needed in practice\n",
1212+
"base_startup = LOAD_PATH[end]\n",
1213+
"@sync @everywhere workers() push!(LOAD_PATH, $(base_startup))\n",
12111214
"@show workers()\n",
12121215
"for k in 1:nworkers()\n",
12131216
" place1 = (k - 1) * div(nthread,nworkers())\n",

0 commit comments

Comments
 (0)