GithubHelp home page GithubHelp logo

isabella232 / conda-recipe-cudatoolkit-dev Goto Github PK

View Code? Open in Web Editor NEW

This project forked from quansight/conda-recipe-cudatoolkit-dev

0.0 0.0 0.0 97 KB

conda recipe for a "full" cudatoolkit package

License: BSD 2-Clause "Simplified" License

Batchfile 0.73% Shell 14.11% Python 64.93% PowerShell 18.92% Cuda 1.32%

conda-recipe-cudatoolkit-dev's Introduction

Build Status

conda-recipe-cudatoolkit-dev

conda recipe for a "full" cudatoolkit package

Build and Install the package

conda create -n cudatest python=3.6 conda-build numba conda-verify -y

source activate cudatest 

conda build condarecipe9.2/

conda install --use-local $CONDA_PREFIX/conda-bld/linux-64/cudatoolkit-dev-9.2-0.tar.bz2 -v

Testing the package

To confirm that the compiler was properly installed, run:

which nvcc

This returns the installation path

/home/ubuntu/miniconda3/envs/cudatest/bin/nvcc  

To find the compiler's version, run:

nvcc --version

You get:

vcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2018 NVIDIA Corporation
Built on Tue_Jun_12_23:07:04_CDT_2018
Cuda compilation tools, release 9.2, V9.2.148

This repo contains both python (numba) tests and cuda tests.

To run python (numba) tests, run:

cd tests
python run_test.py

If everything is configured properly, you get:

Finding cublas
	located at /home/ubuntu/miniconda3/envs/cudatest/lib/libcublas.so.9.2.148
	trying to open library...	ok
Finding cusparse
	located at /home/ubuntu/miniconda3/envs/cudatest/lib/libcusparse.so.9.2.148
	trying to open library...	ok
Finding cufft
	located at /home/ubuntu/miniconda3/envs/cudatest/lib/libcufft.so.9.2.148
	trying to open library...	ok
Finding curand
	located at /home/ubuntu/miniconda3/envs/cudatest/lib/libcurand.so.9.2.148
	trying to open library...	ok
Finding nvvm
	located at /home/ubuntu/miniconda3/envs/cudatest/lib/libnvvm.so.3.2.0
	trying to open library...	ok
	finding libdevice for compute_20...	ok
	finding libdevice for compute_30...	ok
	finding libdevice for compute_35...	ok
	finding libdevice for compute_50...	ok
NVVM version (1, 5)

To run CUDA (Thrust) tests, run:

nvcc -o version thrust_version.cu
./version

You get:

Thrust v1.9

conda-recipe-cudatoolkit-dev's People

Contributors

andersy005 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.