-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
juliaCall - MendelIHT initialization warning #53
Comments
I'm a bit confused since none of the errors seems to be caused by code in
|
Could we try to resolve it by just qualifying the maf() call as suggested in the warning message? |
Sorry for the lack of updates. It took me some time to figure out what the issue was. This is an issue with multithreaded cross-validation (nothing to do with R or M1 CPUs). I'm not 100% sure yet, but it seems like a dynamic scheduler causes a race condition in my cross-validation code. I'll fix this in a separate issue. To resolve this issue, I'll revert cross-validation back to a static scheduler in the next minor release, which seems to work. This shouldn't really cause any computational slowdowns, but it'd still be interesting to know why the difference causes a race condition. > Sys.setenv(JULIA_NUM_THREADS = 8)
> library(JuliaCall)
> julia <- julia_setup(JULIA_HOME = "/Applications/Julia-1.8.app/Contents/Resources/julia/bin")
Julia version 1.8.5 at location /Applications/Julia-1.8.app/Contents/Resources/julia/bin will be used.
Loading setup script for JuliaCall...
Finish loading setup script for JuliaCall.
> julia_command("using MendelIHT")
> |
I am using
juliaCall
to callMendelIHT
from within R on an Apple MacBook Air M1.When I first issue the command
in an R Studio
julia
chunk, I get this warning/error message:I guess it is just a 'warning' and so can be ignored, but of course the subsequent lines make it sound like it is an error that perhaps I should be concerned about.
But then if I do
a second time, it seems that
MendelIHT
is loaded OK.This is with version 1.4.7:
But strangely I don't get this warning when starting up in the Terminal at the command line:
Here's the full error message obtained when starting up MendelIHT via JuliaCall:
Minimal Working Example:
The text was updated successfully, but these errors were encountered: