Tag Info

New answers tagged

6

The OP's (current) definition of ncalc is unreadable and unsalvageable, so I made one up from pieces of the code. ncalc = Piecewise[{ {-21. + 294. u - 1029. u^2, u < 1/7}, {2. v (131.25 - 367.5 u + 257.25 u^2), 5/7 < u < 6/7}, {5.25, u == 6/7}, {33.8811 v^2 , u > 1/7}}, -1380.75 + 3160.5 u - 1800.75 u^2] When you set shared ...


4

After a bit of consideration I recommend that you use ParallelSubmit and related functionality, e.g. WaitAll. Please consider this example: job = Array[ParallelSubmit[Pause[1]; If[Random[] > 0.7, Quit[]]; Print[#]] &, 10] This creates a series EvaluationObject tasks to perform. Within each is a 30% chance of failure simulated by If[Random[] ...


1

I've solved the problem by using the tunnel_sub.sh from Sacha Kratky script provided here. Thank you


2

I do not have time to explore this deeply, but a quick Trace of the issue indicates that the functionality simply is not written to preserve packing. Observe: args = RandomReal[1, {10000}]; On["Packing"]; tr = Trace @ ParallelTable[x, {x, args}, Method -> "ItemsPerEvaluation" -> 100]; FirstPosition[tr, Developer`FromPackedArray::punpack1] {5, ...



Top 50 recent answers are included