-
Notifications
You must be signed in to change notification settings - Fork 0
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
[BUG]: Reactant.jl in precompiling.jl will cause Segfault #13
Comments
@MilesCranmer I feel like this is similar to what you mentioned earlier about some I/O being opened but not closed during precompilation, but I'm not entirely sure how to resolve it. What's even stranger is that I was originally able to use Reactant.jl during precompilation, but after I deleted the folder and re-cloned my repository, and then re-instantiated it, I encountered the issue of not being able to use Reactant.jl during precompilation. I find this problem quite puzzling. Do you have any thoughts on this? |
To reproduce this error, you can change the Edit: here is the output
It seems that the program encountered a segfault when compiling kernels at the beginning of the main program, right after SymbolicRegressionGPU.jl/src/PSRNfunctions.jl Lines 100 to 107 in d79bfeb
SymbolicRegressionGPU.jl/src/PSRNmodel.jl Lines 321 to 337 in d79bfeb
|
Hm. The Reactant.jl developers are pretty responsive; maybe they would know? |
Not certain, but it may be JuliaLang/julia#56947 which has a backport fix to 1.10 here JuliaLang/julia#56973 And also regardless you need to clear the opaque closure compile cache like here: https://github.com/EnzymeAD/Reactant.jl/blob/47f363bbd73c91594913fb532db525ccea33b12b/src/Precompile.jl#L58 We'll hopefully clean up stuff shortly to give some guidance on precompilation shortly |
Thanks! I'll take a look |
What happened?
It seems that enabling PSRN (using the Reactant.jl backend) in precompiling.jl causes a segmentation fault when the main program starts. Therefore, I disabled PSRN in precompiling.jl using this method
SymbolicRegressionGPU.jl/src/SymbolicRegression.jl
Lines 1147 to 1149 in 5e44627
SymbolicRegressionGPU.jl/src/SymbolicRegression.jl
Lines 1241 to 1250 in 5e44627
The text was updated successfully, but these errors were encountered: