Skip to content

Instantly share code, notes, and snippets.

#include <linux/module.h>
#include <linux/init.h>
#include <linux/kthread.h>
#include <linux/delay.h>
struct task_struct* ts;
static int thread_func(void)
{
while (1)
@codeRhythm
codeRhythm / cuda_installation_on_ubuntu_18.04
Created September 8, 2018 16:07 — forked from Mahedi-61/cuda_11.8_installation_on_Ubuntu_22.04
cuda 9.0 complete installation procedure for ubuntu 18.04 LTS
#!/bin/bash
## This gist contains step by step instructions to install cuda v9.0 and cudnn 7.2 in ubuntu 18.04
### steps ####
# verify the system has a cuda-capable gpu
# download and install the nvidia cuda toolkit and cudnn
# setup environmental variables
# verify the installation
###
@codeRhythm
codeRhythm / java
Created August 24, 2018 15:31 — forked from Macrow/java
Android studio 统一替换JCenter为国内阿里云maven
摘要: jcenter替换为国内阿里云maven地址
在你的USER_HOME/.gradle/目录下,新建一个文件init.gradle
把这一段内容拷贝进去

Build tensorflow on OSX with NVIDIA CUDA support (GPU acceleration)

These instructions are based on Mistobaan's gist but expanded and updated to work with the latest tensorflow OSX CUDA PR.

Requirements

OS X 10.10 (Yosemite) or newer