8

The remote batch job submission functionality in version 12.2 of Mathematica makes it easy to run batch jobs on cloud services like AWS Batch. See this example illustrating a trivial job using multi-core parallel computation: In[1]:= job = RemoteBatchSubmit[ RemoteBatchSubmissionEnvironment[...], {$ProcessorCount, ParallelEvaluate[$KernelID]}, ...


4

The example now runs without error (V12.2 or earlier), but it gives different (and incorrect) results than the unparallelized call. I guess it is still a work in progress. eqs = {{y1'[t] == y2[t], y2'[t] == -Sin[y1[t]]}, {y1[0] == 1/2, y2[0] == 0}}; vars = {y1, y2}; tf = 100; time = {t, 0, tf}; prsol1 = First[ NDSolve[eqs, vars, time, ...


4

You seem to do something wrong because the LIL you provide is more suitable to assemble the transpose of the desired matrix in CRS format (or to assemble the desired matrix in CCS format). Since Mathematica uses CRS, I show you how to assemble the transpose. First two compiled helper functions: getColumnIndices = Compile[{{p, _Integer, 1}, {a, _Integer, 2}}, ...


1

It looks like the definitions for NonCommutativeMultiply don't make it to the parallel kernels. You can test this as follows: CloseKernels[]; Unprotect[NonCommutativeMultiply]; NonCommutativeMultiply[args___] := f[args]; Protect[NonCommutativeMultiply]; Quiet @ LaunchKernels[]; DistributeDefinitions[NonCommutativeMultiply]; ParallelEvaluate[Hold[Evaluate[3 **...


Only top voted, non community-wiki answers of a minimum length are eligible