Comments (6)
Thanks for opening this issue. I believe this was just a case of SimDesign
not being attached early enough in the distribution of the objects/functions, which for some reason in my tests was not detected (I run an MPI cluster locally for testing, so perhaps that's why?). In any event, I've add SimDesign
to the .packages
argument in the foreach()
calls, so hopefully that fixes the issue. Would you mind testing this on your end before closing?
from simdesign.
Works perfectly fine ! I still have to figure out some details regarding our Cluster and MPI, but as far as I can see, the bug is fixed and it works:
cl <- startMPIcluster()
Attaching package: ‘mvtnorm’
The following objects are masked from ‘package:SimDesign’:
rmvnorm, rmvt
Attaching package: ‘Matrix’
The following objects are masked from ‘package:tidyr’:
expand, pack, unpack
Design row: 1/8; Started: Tue Aug 2 21:33:08 2022; Total elapsed time: 0.00s
CmdStan path set to: /home/jgoettma/R/x86_64-pc-linux-gnu-library/4.1/cmdstan-2.30.0
Thanks for this amazing package, I abandoned the nested foreach loops !
from simdesign.
Hey thank you very much !! I will test it asap and call back !
from simdesign.
I tested now on the Cluster (reinstalled from GitHub previously) got this msg:
> cl <- startMPIcluster()
Attaching package: ‘mvtnorm’
The following objects are masked from ‘package:SimDesign’:
rmvnorm, rmvt
Attaching package: ‘Matrix’
The following objects are masked from ‘package:tidyr’:
expand, pack, unpack
Error in load_packages(packages) :
task 1 failed - "could not find function "load_packages""
Calls: runSimulation -> %dopar% -> <Anonymous>
Execution halted
--------------------------------------------------------------------------
Primary job terminated normally, but 1 process returned
a non-zero exit code. Per user-direction, the job has been aborted.
--------------------------------------------------------------------------
--------------------------------------------------------------------------
mpirun detected that one or more processes exited with non-zero status, thus causing
the job to be terminated. The first process to do so was:
Process name: [[51400,1],0]
Exit code: 1
--------------------------------------------------------------------------
seems the same Issue - is it necessary to attach simDesign itself in packages?
from simdesign.
It isn't necessary for the package itself to be exported, but I do so so that the other data generation functions are within the correct scope (e.g., avoids the need for SimDesign::rHeadrick()
, for instance). It also makes the package experience the same when using a single computer or MPI (at least in theory.....)
The odd thing about the error message you are seeing is that SimDesign
is somehow getting out of the correct scope to the point that none of the internal functions are being located, and it's not clear to me why. I'll poke around some more to see what I can find.
from simdesign.
I was able to reproduce the problem on my end and have sent a suitable patch. Mind testing once more when you have a chance?
from simdesign.
Related Issues (20)
- Errors in analysis functions are catched and passed as input to `Summarise` when there are multiple analysis functions HOT 2
- Rstudio server crashes when debugging runSimulation() HOT 5
- Is it possible to capture all errors when using multiple analysis functions? HOT 9
- Code in SimDesign Package Won't Run for window 10!! HOT 1
- Implicit activation of parallelization can be risky HOT 8
- Question / Issue HOT 5
- Variable naming error when using `runSimulation()` HOT 5
- Implement sample size planning functions HOT 2
- Implement MCSE for performance measure functions HOT 2
- runSimulation fails if design and estimate are named the same HOT 1
- Validate function outputs HOT 4
- Random number seed management HOT 1
- Improve documentation on parallel processing HOT 5
- Features to support runnign as array jobs on a cluster HOT 15
- aggregate_simulations and selective loading of results HOT 5
- aggregate_simulations and summary results HOT 5
- Checking for incomplete designs in large simulations HOT 1
- Seeds and reproducibility in distributed simulations HOT 11
- Allow RAM testing considerations
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from simdesign.