Skip to content

Instantly share code, notes, and snippets.

@chinshr
chinshr / Jenkinsfile
Last active October 16, 2023 09:25
Best of Jenkinsfile, a collection of useful workflow scripts ready to be copied into your Jenkinsfile on a per use basis.
#!groovy
# Best of Jenkinsfile
# `Jenkinsfile` is a groovy script DSL for defining CI/CD workflows for Jenkins
node {
}
@gaintsev
gaintsev / yandex-translate.sh
Created February 21, 2016 00:54
Yandex.Translate shell script
#!/bin/bash
# Dependencies:
# ------------
# xclip — read/write to clipboard
# jq — parse JSON
apiKey="" # Yandex API key, see here https://tech.yandex.ru/keys/get/?service=trnsl
firstLang=$1
lastLang=$2
@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.