Skip to content

Instantly share code, notes, and snippets.

View cgmb's full-sized avatar

Cory Bloor cgmb

  • Advanced Micro Devices, Inc.
  • Canada
View GitHub Profile
@cgmb
cgmb / b566e2bdb3a6d088d6155393afe31c4b5b617dc8.patch
Created July 23, 2023 06:42
HIP Graph Host-to-Host Copy Bug
From b566e2bdb3a6d088d6155393afe31c4b5b617dc8 Mon Sep 17 00:00:00 2001
From: Jaydeep Patel <[email protected]>
Date: Mon, 2 Jan 2023 13:08:13 +0000
Subject: [PATCH] SWDEV-375366 - SWDEV-375351 - Handle HtoH case for graph mem
cpy impl.
Change-Id: I5a8c3c3c22db045f714b0443b8d70a8c6b4a8cea
---
src/hip_graph_helper.hpp | 4 +++
src/hip_graph_internal.hpp | 30 ++++++++++++++++++++---
@cgmb
cgmb / rocm-device-libs-5.6.0-log.txt
Created July 17, 2023 09:14
clang-16 crash in rocm-device-libs tests
root@d70ac93ec2b6:~/rocm-device-libs/rocm-device-libs# gbp buildpackage --git-ignore-new
gbp:info: Performing the build
dpkg-buildpackage -us -uc -ui -i -I
dpkg-buildpackage: info: source package rocm-device-libs
dpkg-buildpackage: info: source version 5.6.0-1~exp1
dpkg-buildpackage: info: source distribution UNRELEASED
dpkg-buildpackage: info: source changed by Cordell Bloor <[email protected]>
dpkg-source -i -I --before-build .
dpkg-buildpackage: info: host architecture amd64
debian/rules clean
@cgmb
cgmb / README.md
Last active July 5, 2023 21:35
Debian Unstable Test Logs - 2023-07-03

These are test logs from running ROCm package tests on Debian Unstable.

@cgmb
cgmb / rocm-docs-amd-com-20230701003739.csv
Last active July 1, 2023 05:32
ROCm Documentation Broken links
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 7.
Error,URL,Anchor text,Linked from,Line
"The server name or address could not be resolved ","http://install.sh/","install.sh","https://rocm.docs.amd.com/en/latest/release.html","1046"
"404 Not Found","https://github.com/ROCm-Developer-Tools/hip-tests/tree/develop/samples/1_Utils/shipBusBandwidth","ROCm-Developer-Tools/hip-tests","https://rocm.docs.amd.com/en/latest/CHANGELOG.html","2359"
"404 Not Found","https://github.com/ROCm-Developer-Tools/hip-tests/tree/develop/samples/1_Utils/hipCommander","ROCm-Developer-Tools/hip-tests","https://rocm.docs.amd.com/en/latest/CHANGELOG.html","2360"
"The server name or address could not be resolved ","http://rmake.py/","rmake.py","https://rocm.docs.amd.com/en/latest/CHANGELOG.html","2917"
"The server name or address could not be resolved ","http://commandrunner.py/","commandrunner.py","https://rocm.docs.amd.com/en/latest/CHANGELOG.html","4101"
"The server name or address could not be resolved ","http://helloword.cl/","HelloWord.cl","https://rocm.docs.amd.com/en/latest/CHAN
@cgmb
cgmb / install-rocblas.sh
Last active May 21, 2023 06:17
Install rocBLAS from Debian experimental
#!/bin/bash
# Install rocblas from the Debian experimental repo. To run Debian in a docker container, use:
# docker run -it --device=/dev/dri --device=/dev/kfd --security-opt seccomp=unconfined debian:sid
apt-get -y update
apt-get -y install ca-certificates
cat << 'EOF' > /etc/apt/sources.list.d/experimental.list
deb https://deb.debian.org/debian experimental main
EOF
apt-get -y update
@cgmb
cgmb / 0001-Guard-use-of-OpenMP-to-make-it-optional.patch
Created April 25, 2023 16:05
Make OpenMP optional in rocBLAS
From fd158ca247274b593ec59892385a1e66c96fb9a6 Mon Sep 17 00:00:00 2001
From: Cordell Bloor <[email protected]>
Date: Thu, 13 Apr 2023 17:55:03 -0600
Subject: [PATCH] Guard use of OpenMP to make it optional
This change allows rocBLAS to compile and run even when OpenMP is not
available.
---
clients/common/blis_interface.cpp | 4 +-
clients/common/cblas_interface.cpp | 20 ++++++++++
@cgmb
cgmb / rocsolver_rfinfo.cpp
Created March 31, 2023 11:01
Example of C++-style error handling
/* ************************************************************************
* Copyright (c) 2023 Advanced Micro Devices, Inc.
* ************************************************************************ */
#include <new>
#include "rocsolver_rfinfo.hpp"
extern "C" rocblas_status rocsolver_create_rfinfo(rocsolver_rfinfo* rfinfo, rocblas_handle handle)
{
@cgmb
cgmb / rocsolver_rfinfo.cpp
Last active March 31, 2023 16:39
Example of C-style error handling
/* ************************************************************************
* Copyright (c) 2023 Advanced Micro Devices, Inc.
* ************************************************************************ */
#include <stdlib.h>
#include <rocblas/rocblas.h>
#include <rocsparse/rocsparse.h>
#include "rocsolver_rfinfo.hpp"
@cgmb
cgmb / CMakeLists.txt
Last active April 18, 2025 01:57
Setup ROCm on a G4ad instance
cmake_minimum_required(VERSION 3.16)
project(example LANGUAGES CXX)
find_package(hip REQUIRED)
add_executable(example main.cpp)
target_link_libraries(example PRIVATE hip::device)
@cgmb
cgmb / CMakeLists.txt
Last active February 22, 2023 18:58
Using perf on Ubuntu 20.04
cmake_minimum_required(VERSION 3.16)
project(rocblas-init-benchmark)
find_package(rocblas REQUIRED)
add_executable(rbi main.c)
target_link_libraries(rbi PRIVATE roc::rocblas)