GithubHelp home page GithubHelp logo

jiankangren / pyclipsm Goto Github PK

View Code? Open in Web Editor NEW

This project forked from guiming/pyclipsm

0.0 1.0 0.0 672 KB

PyCLiPSM - Harnessing Heterogeneous Computing Resources on CPUs and GPUs for Accelerated Digital Soil Mapping

License: MIT License

Python 84.14% C 15.86%

pyclipsm's Introduction

PyCLiPSM

Set up computing environment:

  1. Install GPU drivers. If you are using NVIDIA GPUs, OpenCL support is included in the driver (https://developer.nvidia.com/opencl). If you are using AMD GPU/CPU, install appropriate OpenCL drivers from ADM (This link provides helpful pointers microsoft/LightGBM#1342). If you are using Intel GPU/CPU, install appropriate OpenCL drivers from Intel (e.g., https://software.intel.com/en-us/articles/opencl-drivers).
  2. It's assumed that you already have Python (version 2.7) installed. Anaconda is recommended for installing Python https://www.anaconda.com/distribution/.
  3. Once OpenCL drivers and Python are properly installed, you can use pip to install the PyOpenCL package (https://pypi.org/project/pyopencl/).
  4. Run pyopencl_test.py to test if PyOpenCL is working properly: python pyopencl_test.py.

Run PyCLiPSM with sample data:

  1. Run pyopencl_test.py to see a list of available OpenCL computing platforms/devices on your computer: python pyopencl_test.py
  2. Change configurations in the OPENCL_CONFIG variable in utility/config.py accordingly, as well as the OPENCL_CONFIG variable in PyCLiPSM_main.py.
  3. Run PyCLiPSM_main.py to get a sense of how to use PyCLiPSM (using example data provided): python PyCLiPSM_main.py

Use PyCLiPSM for your own application:

  1. Prepare soil sample data and environmental covariate data following the example data in the "data" directory
  2. Change parameters (e.g., data directory, data file names, etc.) in PyCLiPSM_main.py accordingly
  3. Run PyCLiPSM_main.py: python PyCLiPSM_main.py

Contact

[email protected]

pyclipsm's People

Contributors

guiming avatar

Watchers

James Cloos avatar

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.