GithubHelp home page GithubHelp logo

fastqsl's Introduction

FastQSL

CC BY-NC-SA 4.0 This module is licensed under a CC BY-NC-SA 4.0 License.

A module to calculate Q Factor with GPU, FastQSL

The idea is to do the most computational intensive work in GPU with compiled code (TraceBline.cu), and do the rest of the complex but not computational intensive work in Python.

A CPU version is also provided https://github.com/el2718/FastQSL.

Dependencies

  • CUDA >= 11
  • PyCuda
  • cupy

module load for cluster computing (CUDA/11.7.0 Xvfb/1.20.13-GCCcore-11.2.0 GCCcore/11.3.0 xorg-macros/1.19.3-GCCcore-11.3.0 X11/20220504-GCCcore-11.3.0 LLVM/14.0.3-GCCcore-11.3.0 Mesa/22.0.3-GCCcore-11.3.0)

Step by step Tutorial

Preparation

Hardware

Buy a computer with Nvidia GPU

Software

Build Enviroment

Test conda

Start a 'Anaconda Powershell prompt' (in Windows), a terminal (in Linux). Type command:

conda --version

You should get "conda x.x.x", which means conda is successfully installed.

New conda-env

Create a new env named 'fastqsl' and use 3.8.2 version of python:

conda create -n fastqsl python=3.9
conda activate fastqsl

after this you should be able to see a '(fastqsl)' in your command line.

Install dependencies
conda install numpy matplotlib scipy jupyterlab tqdm
python -m pip install cupy-cuda117 ipython-autotime pyvista

Run

Download code

git clone https://github.com/Pjer-zhang/FastQSL.git

Run in jupyterlab

In the env created last section, type command

cd FastQSL
python -m jupyterlab --port 9999

Normally it will pop up a browser automatically, if it didn't, you need to it manually by copy the url in the output of the command to a browser (Chrome recomended)

Enjoy.


Cite as

@ARTICLE{2022ApJ...937...26Z,
       author = {{Zhang}, PeiJin and {Chen}, Jun and {Liu}, Rui and {Wang}, ChuanBing},
        title = "{FastQSL: A Fast Computation Method for Quasi-separatrix Layers}",
      journal = {\apj},
     keywords = {Solar magnetic fields, GPU computing, 1503, 1969},
         year = 2022,
        month = sep,
       volume = {937},
       number = {1},
          eid = {26},
        pages = {26},
          doi = {10.3847/1538-4357/ac8d61},
       adsurl = {https://ui.adsabs.harvard.edu/abs/2022ApJ...937...26Z},
      adsnote = {Provided by the SAO/NASA Astrophysics Data System}
}

fastqsl's People

Contributors

el2718 avatar peijin94 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

fastqsl's Issues

Missing Data

Hey! Thanks for sharing this project! I wanted run your demos but failed because they all depend on sample data, e.g. "B0.sav". Is there any way to access these data sets?

Best regards, Max

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.