Skip to content

Instantly share code, notes, and snippets.

View Brainiarc7's full-sized avatar

Dennis E. Mungai Brainiarc7

View GitHub Profile
@Brainiarc7
Brainiarc7 / 01-installing-linux-on-asus-gm501gs-xs74.md
Last active December 31, 2021 02:57
Installing Ubuntu 18.04LTS on the Asus GM501GS-XS74 notebook

Installing Linux on the Asus GM501GS-XS74:

For starters,

If you are dual booting, install Windows first, and partition from there with a tool such as Minitool. You'll only need two partitions, one for root and optionally, a small one for swap (say, 8GB). Partition them as appropriate, and when done, reboot into the UEFI menu and ensure that:

(a). Secure boot is disabled (otherwise you won't be able to load up proprietary drivers needed for the Nvidia GPU).

(b). Confirm that you're booting in UEFI mode ONLY. This is the default. CSM should remain disabled. Here's why.

@Brainiarc7
Brainiarc7 / fix-intel_wifi_aer-avell_g1513_fire_v3
Created July 16, 2018 13:21 — forked from flisboac/ fix-intel_wifi_aer-avell_g1513_fire_v3
Temporary fix for AER's excessive `severity=Corrected` logging for Intel Wireless (Avell G1513 Fire V3) (Arch Linux)
silly gist hack, why do we need you? :(
@Brainiarc7
Brainiarc7 / C-states.md
Created July 14, 2018 00:20 — forked from wmealing/C-states.md
What are CPU "C-states" and how to disable them if needed?

To limit a CPU to a certain C-state, you can pass the processor.max_cstate=X option in the kernel line of /boot/grub/grub.conf.

Here we limit the system to only C-State 1:

    kernel /vmlinuz-2.6.18-371.1.2.el5 ... processor.max_cstate=1

On some systems, the kernel can override the BIOS setting, and the parameter intel_idle.max_cstate=0 may be required to ensure sleep states are not entered:

@Brainiarc7
Brainiarc7 / gist:6f67ea3f09169d13a6388d9625b8bcb8
Created July 12, 2018 16:53 — forked from luctrudeau/gist:244a87c31bbf8060a6c1d3a198c2d2c4
Libaom on Power Profiling (--limit=10 --cpu-used=1 ducks_take_off_1080p50_60f.y4m)
# Overhead Command Shared Object Symbol
# ........ ....... ................ .........................................................
#
26.47% aomenc aomenc [.] av1_highbd_jnt_convolve_2d_c
10.76% aomenc aomenc [.] aom_highbd_convolve8_horiz_c
10.44% aomenc aomenc [.] aom_highbd_convolve8_vert_c
10.27% aomenc aomenc [.] av1_highbd_jnt_convolve_y_c
6.68% aomenc aomenc [.] av1_highbd_convolve_2d_sr_c
4.87% aomenc aomenc [.] av1_highbd_jnt_convolve_x_c
3.89% aomenc aomenc [.] av1_idct64_new
@Brainiarc7
Brainiarc7 / libVPXonPower.prof
Created July 12, 2018 16:52 — forked from luctrudeau/libVPXonPower.prof
[Profiling] LibVPX on Power Youtube-Like Encoding (14 Jun 2018)
# perf record ./vpxenc --good --cpu-used=2 --codec=vp9 --psnr -v -o /dev/null ~/Videos/ducks_take_off_1080p50_60f.y4m
# perf report --stdio > libVPXonPower.prof
#
# Overhead Command Shared Object Symbol
# ........ ....... ................... .......................................................
#
23.35% vpxenc vpxenc [.] vpx_convolve8_vsx
11.09% vpxenc vpxenc [.] vpx_sad16x16x4d_vsx
6.30% vpxenc vpxenc [.] vpx_convolve8_avg_vsx
5.18% vpxenc vpxenc [.] vpx_convolve8_vert_vsx
@Brainiarc7
Brainiarc7 / loadtest.sh
Last active July 13, 2018 04:09 — forked from luctrudeau/loadtest.sh
Load Test Script (tuned for Kabylake i7 8750H on the Eurocom Q6)
#!/bin/bash
JOBS=(1 3 6 12 24 48 96)
ENCODE_THREADS=(1 3 6)
NUM_CPU_THREADS=12
for NUM_ENCODE_THREADS in ${ENCODE_THREADS[*]}; do
for NUM_JOBS in ${JOBS[*]}; do
@Brainiarc7
Brainiarc7 / ffmpeg-qsv-enabled-build-ubuntu-18.04lts-testbed.md
Last active January 8, 2024 21:00
This gist will generate an Intel QSV-enabled FFmpeg build using the open source Intel Media SDK. Testbed used: Ubuntu 18.04LTS. A fallback is also provided for the intel vaapi driver where needed.

Build FFmpeg with Intel's QSV enablement on an Intel-based validation test-bed:

Build platform: Ubuntu 18.04LTS

Ensure the platform is up to date:

sudo apt update && sudo apt -y upgrade && sudo apt -y dist-upgrade

Install baseline dependencies first (inclusive of OpenCL headers+)

@Brainiarc7
Brainiarc7 / cuda_installation_on_ubuntu_18.04
Last active March 12, 2024 23:46 — forked from Mahedi-61/cuda_11.8_installation_on_Ubuntu_22.04
cuda 9.0 installation guidline for ubuntu 18.04 LTS
# first get the PPA repository driver
sudo add-apt-repository ppa:graphics-drivers/ppa
# install nvidai driver
sudo apt install nvidia-384 nvidia-384-dev
# install other import packages
sudo apt-get install g++ freeglut3-dev build-essential libx11-dev libxmu-dev libxi-dev libglu1-mesa libglu1-mesa-dev
# CUDA 9 requires gcc 6
@Brainiarc7
Brainiarc7 / ubuntu-1804lts-ocl-preparedness.md
Last active May 3, 2021 08:36
Preparing Ubuntu 18.04LTS as an OpenCL development platform, with a sample build target provided by Pyrit to demonstrate OpenCL ICD coexistence.

Preparing Ubuntu 18.04LTS as an OpenCL development platform:

With OpenCL, the installable client drivers (ICDs) are normally issued with the accelerator's device drivers, namely:

  1. The NVIDIA CUDA toolkit (and the device driver) for NVIDIA GPUs.
  2. AMD's RoCM for GCN-class AMD hardware.
  3. Intel's beignet and the newer Neo compute runtime.

The purpose of the installable client driver model is to allow multiple OpenCL platforms to coexist on the same platform. That way, multiple OpenCL accelerators, be they discrete GPUs paired with a combination of FPGAs and integrated GPUs can all coexist.

@Brainiarc7
Brainiarc7 / intel-opencl-neo-build.md
Last active August 30, 2022 21:43
Build Intel's Neo OpenCL platform on Ubuntu 18.04LTS

Intel OpenCL stack enablement on Ubuntu 18.04LTS.

Here's how to build and install Intel's new OpenCL enablement stack, Neo, which replaces the legacy Beignet ICD.

Install the dependencies:

Build dependencies:

sudo apt-get install ccache flex bison clang-4.0 cmake g++ git patch zlib1g-dev autoconf xutils-dev libtool pkg-config libpciaccess-dev