You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<p>The Haskell ecosystem has two tools to help with building and installing packages: <ahref="https://www.haskell.org/cabal/"><code>cabal</code></a> (the default) which installs packages to a global location, and <ahref="https://docs.haskellstack.org/en/stable/README/"><code>stack</code></a>, which has a more project-centric focus.</p>
114
+
<h3id="using-cabal">2.1 Using cabal</h3>
110
115
<p>We can now install the core Accelerate library:</p>
<p>This will install the current stable release of Accelerate from <ahref="https://hackage.haskell.org">Hackage</a>. If you would like to instead install the latest in-development version, see how to <ahref="/get-started/install-from-github.html">install from GitHub</a>.</p>
<h2id="run-an-accelerate-program">3. Run an Accelerate program</h2>
121
139
<p>Copy the following content into a file called <code>Dotp.hs</code>. This simple example computes the dot product of two vectors of single-precision floating-point numbers. If you installed the GPU backend in step <ahref="#install-accelerate">2</a>, you can uncomment the third line (delete the leading <code>--</code>) to enable both the CPU and GPU backends.</p>
<li><ahref="#using-cabal">2.1 Using cabal</a></li>
102
+
<li><ahref="#using-stack">2.2 Using stack</a></li>
103
+
</ul></li>
101
104
<li><ahref="#run-an-accelerate-program">3. Run an Accelerate program</a></li>
102
105
<li><ahref="#next-steps">4. Next steps</a></li>
103
106
</ul></li>
@@ -128,6 +131,8 @@ <h3 id="llvm">1.2 LLVM</h3>
128
131
<h3id="cuda-optional">1.3 CUDA (optional)</h3>
129
132
<p>If you have a CUDA capable NVIDIA GPU (see the <ahref="https://en.wikipedia.org/wiki/CUDA#GPUs_supported">list of supported devices</a>) and would like to run Accelerate programs on the GPU, you will need to download and install the CUDA toolkit available <ahref="https://developer.nvidia.com/cuda-downloads">here</a>.</p>
<p>The Haskell ecosystem has two tools to help with building and installing packages: <ahref="https://www.haskell.org/cabal/"><code>cabal</code></a> (the default) which installs packages to a global location, and <ahref="https://docs.haskellstack.org/en/stable/README/"><code>stack</code></a>, which has a more project-centric focus.</p>
135
+
<h3id="using-cabal">2.1 Using cabal</h3>
131
136
<p>We can now install the core Accelerate library:</p>
<p>This will install the current stable release of Accelerate from <ahref="https://hackage.haskell.org">Hackage</a>. If you would like to instead install the latest in-development version, see how to <ahref="/get-started/install-from-github.html">install from GitHub</a>.</p>
<p>(Optional) If you have a CUDA capable GPU and installed the CUDA toolkit in step <ahref="#cuda-optional">1.3</a>, you can also install the Accelerate backend for NVIDIA GPUs:</p>
<h2id="run-an-accelerate-program">3. Run an Accelerate program</h2>
142
160
<p>Copy the following content into a file called <code>Dotp.hs</code>. This simple example computes the dot product of two vectors of single-precision floating-point numbers. If you installed the GPU backend in step <ahref="#install-accelerate">2</a>, you can uncomment the third line (delete the leading <code>--</code>) to enable both the CPU and GPU backends.</p>
<li><ahref="#using-cabal">2.1 Using cabal</a></li>
102
+
<li><ahref="#using-stack">2.2 Using stack</a></li>
103
+
</ul></li>
101
104
<li><ahref="#run-an-accelerate-program">3. Run an Accelerate program</a></li>
102
105
<li><ahref="#next-steps">4. Next steps</a></li>
103
106
</ul></li>
@@ -121,6 +124,8 @@ <h3 id="llvm">1.2 LLVM</h3>
121
124
<h3id="cuda-optional">1.3 CUDA (optional)</h3>
122
125
<p>If you have a CUDA capable NVIDIA GPU (see the <ahref="https://en.wikipedia.org/wiki/CUDA#GPUs_supported">list of supported devices</a>) and would like to run Accelerate programs on the GPU, you will need to download and install the CUDA toolkit available <ahref="https://developer.nvidia.com/cuda-downloads">here</a>.</p>
<p>The Haskell ecosystem has two tools to help with building and installing packages: <ahref="https://www.haskell.org/cabal/"><code>cabal</code></a> (the default) which installs packages to a global location, and <ahref="https://docs.haskellstack.org/en/stable/README/"><code>stack</code></a>, which has a more project-centric focus.</p>
128
+
<h3id="using-cabal">2.1 Using cabal</h3>
124
129
<p>We can now install the core Accelerate library:</p>
<p>This will install the current stable release of Accelerate from <ahref="https://hackage.haskell.org">Hackage</a>. If you would like to instead install the latest in-development version, see how to <ahref="/get-started/install-from-github.html">install from GitHub</a>.</p>
<p>(Optional) If you have a CUDA capable GPU and installed the CUDA toolkit in step <ahref="#cuda-optional">1.3</a>, you can also install the Accelerate backend for NVIDIA GPUs:</p>
<h2id="run-an-accelerate-program">3. Run an Accelerate program</h2>
135
153
<p>Copy the following content into a file called <code>Dotp.hs</code>. This simple example computes the dot product of two vectors of single-precision floating-point numbers. If you installed the GPU backend in step <ahref="#install-accelerate">2</a>, you can uncomment the third line (delete the leading <code>--</code>) to enable both the CPU and GPU backends.</p>
0 commit comments