Giter VIP home page Giter VIP logo

Comments (8)

glanzkaiser avatar glanzkaiser commented on June 20, 2024 1

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.

Capture d’écran_2022-07-21_15-05-55

Thanks @islent

from astronbodysim.jl.

islent avatar islent commented on June 20, 2024

Can you paste the output of calling versioninfo?

image

By the way, I have the same problem of precompiling [email protected]. However, it can be successfully imported.
image

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.

glanzkaiser avatar glanzkaiser commented on June 20, 2024

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.

Capture d’écran_2022-07-20_17-31-39
Capture d’écran_2022-07-20_17-32-39

why is the environment folder not containing the folders and codes from AstroNbodysim?

Capture d’écran_2022-07-20_17-34-02

from astronbodysim.jl.

islent avatar islent commented on June 20, 2024

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.

glanzkaiser avatar glanzkaiser commented on June 20, 2024

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,
Capture d’écran_2022-07-20_21-24-36

then what should I do?

from astronbodysim.jl.

islent avatar islent commented on June 20, 2024

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.

glanzkaiser avatar glanzkaiser commented on June 20, 2024

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.

Capture d’écran_2022-07-21_11-51-12

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.

islent avatar islent commented on June 20, 2024

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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.