---
layout: post
title: Installing HPXCL with CUDA support
tags:
- Building
---
Prerequisites
=====
<ul>
<li><a href="https://developer.nvidia.com/cuda-toolkit">CUDA</a> >= 7.0</li>
<li><a href="https://github.com/STEllAR-GROUP/hpx">HPX</a> >= 0.9</li>
<li>CMake >= 3.0</li>
</ul>

Building HPXCL 
=====
Get the development branch of <a href="https://github.com/STEllAR-GROUP/hpxcl">HPXCL</a>
{% highlight bash  %}
git clone https://github.com/STEllAR-GROUP/hpxcl.git
{% endhighlight %}
Configure it with CMake
{% highlight bash  %}
cd hpxcl
mkdir build
cd build
-DHPXCL_WITH_CUDA=ON \
-DCUDA_TOOLKIT_ROOT_DIR=/opt/packages/cuda-7.0/ \
-DLIBNVRTC_LIBRARY_DIR=/opt/packages/cuda-7.0/lib64/ .. 
make -j 
make install
{% endhighlight %}

Options:
<ul>
<li>Build examples:  `-DHPXCL_WITH_CUDA_EXAMPLES` (default ON)</li>
<li>Build benchmark: `-DHPXCL_WITH_CUDA_BENCHMARK` (default OFF)</li>
<li>Build documentation: `-DHPXCL_WITH_DOCUMENTATION` (default OFF)</li>
<ul>

---
layout: post
title: Installing HPXCL with CUDA support
tags:
- Building
---
Prerequisites
=====
<ul>
<li><a href="https://developer.nvidia.com/cuda-toolkit">CUDA</a> >= 7.0</li>
<li><a href="https://github.com/STEllAR-GROUP/hpx">HPX</a> >= 0.9</li>
<li>CMake >= 3.0</li>
</ul>

Building HPXCL 
=====
Get the development branch of <a href="https://github.com/STEllAR-GROUP/hpxcl">HPXCL</a>
{% highlight bash  %}
git clone https://github.com/STEllAR-GROUP/hpxcl.git
{% endhighlight %}
Configure it with CMake
{% highlight bash  %}
cd hpxcl
mkdir build
cd build
cmake \
-DHPXCL_WITH_CUDA=ON \
-DCUDA_TOOLKIT_ROOT_DIR=/opt/packages/cuda-7.0/ \
make -j 
make install
{% endhighlight %}

Options:
<ul>
<li>Build examples:  `-DHPXCL_WITH_CUDA_EXAMPLES` (default ON)</li>
<li>Build benchmark: `-DHPXCL_WITH_CUDA_BENCHMARK` (default OFF)</li>
<li>Build documentation: `-DHPXCL_WITH_DOCUMENTATION` (default OFF)</li>
<ul>

Remove old options form the build process
Remove old options form the build process
