1. 19 Jan, 2024 2 commits
  2. 16 Jan, 2024 2 commits
  3. 15 Jan, 2024 2 commits
  4. 11 Jan, 2024 1 commit
  5. 09 Jan, 2024 2 commits
  6. 05 Jan, 2024 4 commits
  7. 04 Jan, 2024 2 commits
    • Bartłomiej Kocot's avatar
    • arai713's avatar
      Transpose profiler fix (#1114) · aa3e2d79
      arai713 authored
      
      
      * added working example for 5D input using 1D kernel
      
      * example with 5D input tensor and 2d kernel - not working: issues with arguments
      
      * added updated version of 3d device op - changed descriptors/dims
      
      * added example file to check kernel
      
      * fixed descriptor and isSupportedArgument stride problem
      
      * added and modified kernel for 3d - updated tids/loop
      
      * adding some more 5d example files
      
      * fixed some issues
      
      * changes made for testing
      
      * working version: fixed error in stride for A, still a bit inefficient
      
      * cleaned up formatting/comments
      
      * updating formatting
      
      * more formatting fixes
      
      * fixing cmake, adding back gpu targets in cmake script
      
      * adding client example
      
      * added instances for client example
      
      * fixed errors in client example
      
      * implemented client ex with device_elementwise.hpp and device_elementwise_3d_impl.hpp
      
      * removed extra files
      
      * minor formatting and naming fixes
      
      * adding test files and profiler
      
      * fixing minor error
      
      * minor fix
      
      * removed unneccesary comments, renamed files
      
      * updated instance list for client example, added different layout example
      
      * removing instances
      
      * fixed error in instance generation
      
      * remove comments
      
      * update profiler and client example tensor layouts
      
      * fixed errors in test/profiler
      
      * updated vector dim access to enable vector load
      
      * updated test/profiler files
      
      * updated example with 1d kernel
      
      * updating profiler
      
      * renamed files
      
      * disabled device op for MI300
      
      * skip  elementwise_permute_2d on gfx94x
      
      * Update CMakeLists.txt
      
      * fixing CMake - disabling some GPU targets
      
      * added transpose profiler to CMake
      
      * fixed transpose profiler errors
      
      * fixed instances for tests/profiler
      
      * cleaned up code in transpose profiler source code
      
      * added some comments, updated copyright
      
      * made function arguments const where possible
      
      ---------
      Co-authored-by: default avatarJing Zhang <jizha@amd.com>
      Co-authored-by: default avatarJing Zhang <jizhan@amd.com>
      Co-authored-by: default avatarzjing14 <zhangjing14@gmail.com>
      aa3e2d79
  8. 03 Jan, 2024 2 commits
  9. 02 Jan, 2024 3 commits
  10. 23 Dec, 2023 1 commit
  11. 20 Dec, 2023 2 commits
  12. 19 Dec, 2023 5 commits
  13. 18 Dec, 2023 2 commits
    • rocking's avatar
      layernorm and groupnorm backward data (#1083) · a69aa2a1
      rocking authored
      * rename folder
      
      * Add type string
      
      * Remove typo
      
      * Add deviceOp to backward x
      
      * Add comment to describe the behavior of backward normalization
      
      * Add kernel function, prepare to implement
      
      * implement generic kernel
      
      * Check vector size
      
      * Add sweep once pipeline for small reduce size
      
      * Fix bug of KRaw_ error
      
      * Fix bug of dx stride
      
      * sanity check for mean and rstd
      
      * backward x for groupnorm
      
      * Add bwd x instance
      
      * add layernorm 2d bwd gamma beta instances
      
      * Change save mean var type from f32 to f16 in f16 mode
      
      * Change the example to f16
      
      * Add groupnorm bwd gamma beta instance
      
      * Add groupnorm bwd x instance
      
      * Fix naming
      
      * Add layernorm bwd x ckprofiler
      
      * Add groupnorm bwd x profiler
      
      * clang format
      
      * Rename bwd x to bwd data
      
      * Fix bug of verification in profiler
      
      * Add test of layernorm and groupnorm bwd data
      
      * Add missing cmake
      
      * Add layernorm2d bwd data
      
      * rename fwd example
      
      * Add groupnorm client example
      
      * Fix typo. replace Invarient with Invariant
      
      * Add checking before running the best instance
      a69aa2a1
    • Bartlomiej Wroblewski's avatar
      Optimize fp16 direct load GEMM instances (#1086) · ad0a8e4c
      Bartlomiej Wroblewski authored
      This PR optimizes fp16 instances of direct load GEMM kernel introduced in #999 and #1052.
      
      Measured the performance of new instances on CDNA2 GPU and compared it against the performance of the best non-direct-load GEMM instances. Used 76 different GEMM problems.
      On average, this change improves the performance of the tested problems by 47%. For cases known as latency-bound, the speedup is around 126%.
      ad0a8e4c
  14. 16 Dec, 2023 1 commit
  15. 15 Dec, 2023 3 commits
    • abhimeda's avatar
      Adding Issue Template (#1094) · 3246d1f6
      abhimeda authored
      
      
      * Add files via upload
      
      * fixed extra space typo
      
      * add mi300 GPU architectures and rocm versions 5.6.1 and 6.0.0
      
      ---------
      Co-authored-by: default avatarillsilin <Illia.Silin@amd.com>
      Co-authored-by: default avatarIllia Silin <98187287+illsilin@users.noreply.github.com>
      3246d1f6
    • Bartłomiej Kocot's avatar
      Add tensor structure to wrapper (#1098) · 07092d68
      Bartłomiej Kocot authored
      * Add tensor structure to wrapper
      
      * update changelog
      
      * Fix names
      
      * Comment fixes
      07092d68
    • trixirt's avatar
      cmake: Add CK_PARALLEL_LINK_JOBS and CK_PARALLEL_COMPILE_JOBS options (#1063) · efaf3106
      trixirt authored
      
      
      Copied from the llvm-project LLVM_PARALLEL_*_JOBS
      
      Concurrent linking can break the build as well as having too many
      compile jobs for the avaiable memory.  These options allow the user
      to fine tune the build to fit within their machines memory
      constraints.
      
      An example use on linux is
      COMPILE_JOBS=`cat /proc/cpuinfo | grep -m 1 'cpu cores' | awk '{ print $4 }'`
      if [ ${COMPILE_JOBS}x = x ]; then
        COMPILE_JOBS=1
      fi
      BUILD_MEM=4
      MEM_KB=0
      MEM_KB=`cat /proc/meminfo | grep MemTotal | awk '{ print $2 }'`
      MEM_MB=`eval "expr ${MEM_KB} / 1024"`
      MEM_GB=`eval "expr ${MEM_MB} / 1024"`
      COMPILE_JOBS_MEM=`eval "expr 1 + ${MEM_GB} / ${BUILD_MEM}"`
      if [ "$COMPILE_JOBS_MEM" -lt "$COMPILE_JOBS" ]; then
        COMPILE_JOBS=$COMPILE_JOBS_MEM
      fi
      LINK_MEM=32
      LINK_JOBS=`eval "expr 1 + ${MEM_GB} / ${LINK_MEM}"`
      
      cmake -G Ninja -DCK_PARALLEL_LINK_JOBS=$LINK_JOBS
                     -DCK_PARALLEL_COMPILE_JOBS=$COMPILE_JOBS
      Signed-off-by: default avatarTom Rix <trix@redhat.com>
      efaf3106
  16. 14 Dec, 2023 1 commit
  17. 13 Dec, 2023 2 commits
  18. 12 Dec, 2023 1 commit
  19. 11 Dec, 2023 1 commit
    • Bartlomiej Wroblewski's avatar
      Fix IsSupported check in the contraction op (#1066) · 89ee4746
      Bartlomiej Wroblewski authored
      Current implementation of IsSupported method in contraction ops does not cover a lot of possible cases in which ScalarPerVector cannot really be used to read A, B or D, or write E.
      
      This PR extends both the regular and multiABD contraction ops with improved checks and also adds new instances with smaller values of ScalarPerVector to support instances that are not supported by other instances.
      89ee4746
  20. 08 Dec, 2023 1 commit