h2o4gpu

(โ˜… 468)

H2Oai GPU Edition

  • .clang-format
  • .dockerignore
  • .gitignore
  • .gitmodules
  • CHANGELOG.md
  • CMakeLists.txt
  • CODE_OF_CONDUCT.md
  • CONTRIBUTING.md
  • cub
  • DEVEL.md
  • Dockerfile-build
  • Dockerfile-runtime-multi-gpu
  • Dockerfile-runtime-single-gpu
  • EXAMPLE_SOLVER.md
  • FAQ.md
  • google56b228dd201504e7.html
  • ISSUE_TEMPLATE.md
  • LICENSE
  • LightGBM
  • Makefile
  • nccl
  • PULL_REQUEST_TEMPLATE.md
  • py3nvml
  • README.md
  • TROUBLESHOOTING.md
  • xgboost
  • xgboost_prev

# Installation Guide

1. Get the code
git clone https://github.com/h2oai/h2o4gpu

Downloads the entire project code from GitHub to your computer.

cd h2o4gpu

Moves into the project folder you just downloaded.

2. Official Install Script

Easy Recommended
Prerequisites
  • APT (Debian/Ubuntu ๊ณ„์—ด) Built into Debian/Ubuntu-based Linux distributions.
  • Python 3 Python is required to use pip.
sudo apt-get install libopenblas-dev pbzip2

Installs directly from the APT package repository (Debian/Ubuntu-based).

pip install h2o4gpu-0.3.0-cp36-cp36m-linux_x86_64.whl

Installs the package published on PyPI directly โ€” no need to clone the source.

โœ… After installing, open a new terminal and run the program's version command (e.g. --version) to confirm it worked.

Pulled directly from this repo's README.

3. CMake

Medium
Prerequisites
  • Git Needed to download the project code from GitHub.
  • CMake The tool used to generate build configuration.
  • C/C++ ์ปดํŒŒ์ผ๋Ÿฌ Windows needs Visual Studio (Community edition, free), macOS needs Xcode Command Line Tools, Linux needs the gcc/g++ package.
mkdir build && cd build

Creates a folder to hold the build output and moves into it.

cmake ..

Analyzes the source code and generates build configuration files (must be run inside the build folder).

make

Compiles the code based on the generated build configuration to produce an executable.

โœ… Check that an executable was created inside the build folder, then run it directly (e.g. ./build/app_name).

4. Node.js

Easy
Prerequisites
  • Git Needed to download the project code from GitHub.
  • Node.js Node.js must be installed to use npm. The LTS version is recommended.
cd h2o4gpu-docs-theme

This project's files live in a subfolder, so move into it first.

npm install

Downloads and installs the libraries listed in package.json.

npm start

Starts the development/run server.

โœ… After running the command, open the address shown in the terminal (usually something like http://localhost:3000) in your browser.

5. Python

Easy
Prerequisites
  • Git Needed to download the project code from GitHub.
  • Python 3 On Windows, be sure to check 'Add Python to PATH' during installation.
pip install h2o4gpu-0.3.0-cp36-cp36m-linux_x86_64.whl

Installs the package published on PyPI directly โ€” no need to clone the source.

For more examples using Python API, please check out our [Jupyter notebook demos](https://github.com/h2oai/h2o4gpu/tree/master/examples/py/demos). To run the demos using a local wheel run, at least download `src/interface_py/requirements_runtime_demos.txt` from the Github repo and do:

Runs the Python script (or module).

and then run the jupyter notebook demos.

Type this command into your terminal and run it.

You can run Jupyter Notebooks with H2O4GPU in the below two ways

Type this command into your terminal and run it.

Next follow Conda installation instructions mentioned above. Once you have activated the environment, you will need to downgrade tornado to version 4.5.3 [refer issue #680](https://github.com/h2oai/h2o4gpu/issues/680). Start Jupyter notebook, and navigate to the URL shown in the log output in your browser.

Type this command into your terminal and run it.

โœ… If it runs without errors and prints output in the terminal, it worked.

Pulled directly from this repo's README.

6. Ruby

Easy
Prerequisites
  • Git Needed to download the project code from GitHub.
  • Ruby Ruby is required to use the bundle command.
cd h2o4gpu-docs-theme

This project's files live in a subfolder, so move into it first.

bundle install

Installs the Ruby libraries listed in the Gemfile.

โœ… If bundle install finishes without errors, continue with the run command from the README (e.g. rails server).

7. Make

Medium
Prerequisites
  • Git Needed to download the project code from GitHub.
  • Make Usually pre-installed on Linux/macOS. On Windows, install separately (e.g. via MSYS2 or WSL).
make

Compiles the code based on the generated build configuration to produce an executable.

โœ… If it finishes without errors, it worked. Try running the generated executable directly.
// repository documentation