Comments (8)
I think it works, with device = CPU()
But I have to wait 3 days. Hopefully in the future I can use CUDA so it will deliver the result faster. Simulating galaxy needs a lot of resources.
Thanks @islent
from astronbodysim.jl.
Can you paste the output of calling versioninfo
?
By the way, I have the same problem of precompiling [email protected]
. However, it can be successfully imported.
Here's my suggestions of running AstroNbodySim
:
- Install master branch of packages in
JuliaAstroSim
, because most of them are still under development. For example,pkg> add AstroIC#master
- Use
Julia v1.7.3
and above
from astronbodysim.jl.
I have try this:
julia> versioninfo()
pkg> build AstroIC
julia> using AstroIC
AstroIC can't be used.
Errors Messages:
1. LoadError: UndefVarError: Collection not defined
2. LoadError: Failed to precompile AstroIO [c85a633c-0c3f-44a2-bffe-7f9d0681b3e7] to /home/browni/.julia/compiled/v1.7/AstroIO/jl_jrhF9O.
3. Failed to precompile AstroIC [5b3ca070-48c3-41ea-b469-89825dd01fde] to /home/browni/.julia/compiled/v1.7/AstroIC/jl_d0F6ts.
why is the environment folder not containing the folders and codes from AstroNbodysim?
from astronbodysim.jl.
I notice that you are using [email protected]
from your discourse post:
https://discourse.julialang.org/t/ann-astronbodysim-jl-unitful-and-differentiable-gravitational-n-body-simulation-code-in-julia/74782/30?u=islent
Updating PhysicalParticles.jl
to the newest version may solve your problem (master branch is also recommanded).
from astronbodysim.jl.
I am not really an expert, still a newbie in Julia.
should I do git clone https://github.com/JuliaAstroSim/AstroNbodySim.jl.git
inside my working environment?
I am able to pass build AstroIC,
then what should I do?
from astronbodysim.jl.
should I do
git clone https://github.com/JuliaAstroSim/AstroNbodySim.jl.git
inside my working environment?
My suggestion is yes. Cloning a package does not much help running the package, but helps to search and understand source codes (if documentation is not well covered).
then what should I do?
You can start from the documentation https://juliaastrosim.github.io/AstroNbodySim.jl/dev/. Copy the raw codes, edit them, and run.
There is also a first user guide https://juliaastrosim.github.io/AstroNbodySim.jl/dev/#First-Time-User-Guide
from astronbodysim.jl.
I already get it,
after I git clone git clone https://github.com/JuliaAstroSim/AstroNbodySim.jl.git
then at the directory I do
julia --project="."
julia> ]
pkg> build AstroIC
pkg> add AstroIC#master
julia> include("/../AstroNbodySim.jl/examples/install_pkgs.jl")
julia> include("/../AstroNbodySim.jl/examples/04-collisions/04-collisions.jl")
I want to know why we need to
build AstroIC
before
add AstroIC#master
Then it said that I need CUDA.
I am installing CUDA from this link:
https://developer.nvidia.com/cuda-downloads?target_os=Linux&target_arch=x86_64&Distribution=Ubuntu&target_version=18.04&target_type=deb_local
I want to know how to compile and install CUDA for the source tarball of CUDA, since I want to install CUDA on Linux OS (outside the commercial flags like Ubuntu, Fedora) made out of LFS book.
from astronbodysim.jl.
I want to know why we need to
build AstroIC
before
add AstroIC#master
This is not necessary. I was calling build AstroIC
to trigger a fresh build of package, trying to find any error at build level. In daily usage, you can simply let Pkg
automatically control building and precompiling procedures. All you need to do is, add a package, wait for building and precompiling, and using
it.
Then it said that I need CUDA.
About the installation of CUDA
, see their instructions: https://cuda.juliagpu.org/stable/installation/overview/
AstroNbodySim
can also run without CUDA. For example, in example-4, you can turn off GPU computing by setting device = CPU()
from astronbodysim.jl.
Related Issues (7)
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 astronbodysim.jl.