Hi,miles
After I read Running ITensor and Julia Codes · ITensors.jl, I successfully use ITensors.compile() to speed up the startup process of ITnesor.jl. But when I want to run it like this in a bash script, there is always an error, the easy script and the error are as follows:
#!/bin/bash
julia --sysimage ~/.julia/sysimages/sys_itensors.so isingOQN.jl
ERROR: Unable to find compatible target in system image.
Note:
I have added
alias julia_itensors="julia --sysimage ~/.julia/sysimages/sys_itensors.so"
in ./bashrc
And it can be started normally in command .
I have tried searching for some solutions, but still can’t solve it. I sincerely hope to get some help from the community!