Skip to content

Commit

Permalink
updates to general.html
Browse files Browse the repository at this point in the history
  • Loading branch information
amcamd committed Mar 14, 2017
1 parent 7cb163b commit b5f0ebc
Showing 1 changed file with 42 additions and 1 deletion.
43 changes: 42 additions & 1 deletion Help/general.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,17 @@ <h1>Ubuntu setup</h1>
<li>disk information
</ul>
</li>
<li>hipconfig
<ul>
<li>hip information
</ul>
</li>
<li>adduser
<ul>
<li>sudo useradd --create-home -G sudo --shell /bin/bash &lt;username&gt;
<li>sudo passwd &lt;username&gt;
</ul>
</li>
</ul>

<h1>VIM</h1>
Expand Down Expand Up @@ -307,8 +318,11 @@ <h1>Timing with C++11</h1>
#include &lt;chrono&gt;
std::chrono::time_point&lt;std::chrono::high_resolution_clock&gt; start, end;
std::chrono::duration&lt;double&gt;dur;
hipDeviceSynchronize();
start = std::chrono::high_resolution_clock::now();
status = hcblasSgemm(handle, typeA, typeB, M, N, K, &amp;alpha, d_A, lda, d_B, ldb, &amp;beta, d_C, ldc);
status = hcblasSgemm(handle, typeA, typeB, M, N, K, &amp;alpha,
d_A, lda, d_B, ldb, &amp;beta, d_C, ldc);
hipDeviceSynchronize();
end = std::chrono::high_resolution_clock::now();
dur = end - start;
double gemmSec= dur.count();
Expand Down Expand Up @@ -354,6 +368,16 @@ <h1>Building hcBLAS</h1>
set (HCC_LDFLAGS "${HCC_LDFLAGS} -L${HIP_PATH}/lib /opt/rocm/lib/libCXLActivityLogger.so -lhip_hcc -Wl,-rpath-link,${HIP_PATH}/lib")
</pre>
note the addition of /opt/rocm/lib/libCXLActivityLogger.so
<p>
To run hcblas/test/benchmark you may need to set the following environment variables:
<pre>
> export CODEXL_PATH=/opt/rocm/profiler/bin

> LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/achapman/hcblasClone/hcblas/test/benchmark
> export LD_LIBRARY_PATH

> export HCBLAS_PATH=/home/achapman/hcblasClone/hcblas
</pre>

<h1>rocm-smi (ROCm System Management Interface</h1>
<p>Run <pre>rocm-smi --help</pre> for information. Below commands set
Expand Down Expand Up @@ -433,5 +457,22 @@ <h1>Tensile V2</h1>
vi Kernels.cpp
</pre>

<h1>Docker</h1>
<p>https://hub.docker.com account is amcamd
<p>On Ubuntu machine, can log in with <pre>docker login</pre>
<p>to see all docker containers</p>
<pre>
sudo docker ps -a
</pre>
<p>to attach to docker container</p>
<pre>
sudo docker attach &lt;docker number&gt;
</pre>
<p>to run docker image sunway13/ubuntu14.04:promote-free-v2</p>
<pre>
sudo docker run -it --device "/dev/kfd" sunway513/ubuntu14.04:promote-free-v2 env TERM=xterm-color bash -l
</pre>


</body>
</html>

0 comments on commit b5f0ebc

Please sign in to comment.