Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
DESIRED_LIBS=("libcudnn.so.9" "libcudnn_adv.so.9" "libcudnn_cnn.so.9" "libcudnn_ops.so.9")
SOURCE_DIR="/usr/local/lib/python3.11/site-packages/nvidia/cudnn/lib"
# Greet the user
echo "Hello! Starting the CUDA library symlink creation process."
# Check if source directory exists
if [[ ! -d "$SOURCE_DIR" ]]; then
@tibraga
tibraga / trace-file.json
Created December 19, 2018 16:03
trace file
This file has been truncated, but you can view the full file.
{"traceEvents":[{"pid":48538,"tid":775,"ts":861913620009,"ph":"X","cat":"toplevel","name":"ThreadControllerImpl::RunTask","args":{"src_file":"../../base/trace_event/trace_log.cc","src_func":"SetEnabled"},"dur":48,"tdur":35,"tts":122382},
{"pid":48538,"tid":775,"ts":861913620069,"ph":"X","cat":"toplevel","name":"ThreadControllerImpl::RunTask","args":{"src_file":"../../base/trace_event/trace_log.cc","src_func":"SetEnabled"},"dur":6,"tdur":6,"tts":122429},
{"pid":48538,"tid":775,"ts":861913620084,"ph":"X","cat":"toplevel","name":"ThreadControllerImpl::RunTask","args":{"src_file":"../../base/trace_event/trace_log.cc","src_func":"SetEnabled"},"dur":38,"tdur":38,"tts":122444},
{"pid":48538,"tid":775,"ts":861913620091,"ph":"S","cat":"toplevel","name":"RendererAudioState","args":{},"tts":122451,"id":"0xafdf28a02fd3be8d"},
{"pid":48538,"tid":775,"ts":861913620091,"ph":"T","cat":"toplevel","name":"RendererAudioState","args":{"step":"silent"},"tts":122456,"id":"0xafdf28a02fd3be8d"},
{"pid":48538,"tid":775,"ts":861913620
@tibraga
tibraga / gist:917353ba36434bc218a6
Created June 9, 2014 23:34
CreateFileExample.java
package com.tibraga.io;
import java.io.File;
import java.io.IOException;
public class CreateFileExample
{
public static void main( String[] args )
{
try {