Giter Club home page Giter Club logo

run-gprmax-on-googlecolab's Introduction

Run gprMax on Googlecolab

Run gprMax using Google colab GPU

Requirements:

  1. Google account.
  2. gprMax package, which you can download here .
  3. miniconda3 package, which you can download here, remember you need Linux version.

Installation

The following steps provide guidance on how to install:

  1. Mount your google drive, upload gprMax package and miniconda3 package.
  2. Install miniconda3.
  3. Install gprMax.

1.Mount your google drive, upload gprMax package and miniconda3 package.

First, mount your Google drive by running

from google.colab import drive
drive.mount('/content/drive')

Then, upload gprMax package and miniconda3 package. Remember unzip gprMax package: unzip gprMax-master.zip

1

2.Install miniconda3

Running

import os
os.chdir('/content/drive/My Drive')
!chmod 777 Miniconda3-latest-Linux-x86_64.sh
!bash Miniconda3-latest-Linux-x86_64.sh

After several ENTER and YES, you will see this if you successfully installed miniconda3.

2

3.Install gprMax

First, run !exec bash and conda to check your conda environment, you can see the conda usage like this:

3

Then run the following commands:

cd gprMax-master
conda activate gprMax
conda env create -f conda_env.yml
# build
conda activate gprMax
python setup.py build
python setup.py install
pip install pycuda

4

# run gprMax
python -m gprMax fp_sz_0.03.in -gpu -n 40

5

Using colab to run gprMax is alittle annoying because you have to run those commands again after 12h runtime. Another website: https://www.paperspace.com/ is something like Google colab, but it can save your gprMax environment after 6h runtime.

run-gprmax-on-googlecolab's People

Contributors

laokangde avatar

Stargazers

wukaidi avatar Utkarsh Mathur avatar  avatar Huamei Zhu avatar  avatar

Watchers

 avatar Brian avatar  avatar

Forkers

yuanl666

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.