From b5f0ebc22f033f2a7408f1fbe5f258a8be73190d Mon Sep 17 00:00:00 2001 From: amcamd Date: Tue, 14 Mar 2017 13:21:35 -0500 Subject: [PATCH] updates to general.html --- Help/general.html | 43 ++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 42 insertions(+), 1 deletion(-) diff --git a/Help/general.html b/Help/general.html index d13804f..d836ad8 100644 --- a/Help/general.html +++ b/Help/general.html @@ -45,6 +45,17 @@

Ubuntu setup

  • disk information
  • +
  • hipconfig + +
  • +
  • adduser + +
  • VIM

    @@ -307,8 +318,11 @@

    Timing with C++11

    #include <chrono> std::chrono::time_point<std::chrono::high_resolution_clock> start, end; std::chrono::duration<double>dur; + hipDeviceSynchronize(); start = std::chrono::high_resolution_clock::now(); - status = hcblasSgemm(handle, typeA, typeB, M, N, K, &alpha, d_A, lda, d_B, ldb, &beta, d_C, ldc); + status = hcblasSgemm(handle, typeA, typeB, M, N, K, &alpha, + d_A, lda, d_B, ldb, &beta, d_C, ldc); + hipDeviceSynchronize(); end = std::chrono::high_resolution_clock::now(); dur = end - start; double gemmSec= dur.count(); @@ -354,6 +368,16 @@

    Building hcBLAS

    set (HCC_LDFLAGS "${HCC_LDFLAGS} -L${HIP_PATH}/lib /opt/rocm/lib/libCXLActivityLogger.so -lhip_hcc -Wl,-rpath-link,${HIP_PATH}/lib") note the addition of /opt/rocm/lib/libCXLActivityLogger.so +

    +To run hcblas/test/benchmark you may need to set the following environment variables: +

    +> 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
    +

    rocm-smi (ROCm System Management Interface

    Run

    rocm-smi --help
    for information. Below commands set @@ -433,5 +457,22 @@

    Tensile V2

    vi Kernels.cpp +

    Docker

    +

    https://hub.docker.com account is amcamd +

    On Ubuntu machine, can log in with

    docker login
    +

    to see all docker containers

    +
    +sudo docker ps -a
    +
    +

    to attach to docker container

    +
    +sudo docker attach <docker number>
    +
    +

    to run docker image sunway13/ubuntu14.04:promote-free-v2

    +
    +sudo docker run -it --device "/dev/kfd" sunway513/ubuntu14.04:promote-free-v2 env TERM=xterm-color bash -l
    +
    + +