Skip to content

Instantly share code, notes, and snippets.

View embg's full-sized avatar

Elliot Gorokhovsky embg

  • Meta
  • New York, NY
View GitHub Profile
@embg
embg / repro.ptx
Created July 10, 2024 15:32
ptxas segfault repro
//
// Generated by LLVM NVPTX Back-End
//
.version 8.4
.target sm_90a
.address_size 64
// .globl _copy_2d_tma_kernel
.extern .shared .align 16 .b8 global_smem[];
#include <stdlib.h> // malloc, free, exit
#include <stdio.h> // fprintf, perror, fopen, etc.
#define ZSTD_STATIC_LINKING_ONLY
#include <zstd.h>
#include "common.h"
int main() {
ZSTD_CCtx* cctx = ZSTD_createCCtx();
@embg
embg / gist:48e20211e17511e5ecfb098e915668c0
Created December 12, 2023 22:48
/etc/security/limits.conf
* soft memlock 1283980
* hard memlock 1283980
root hard nofile 655350
root soft nofile 655350
* - memlock 5000000
@embg
embg / mat-494-final-project.ipynb
Created April 15, 2019 22:04
MAT 494 Final Project.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@embg
embg / modexp.txt
Last active October 25, 2018 05:26
TI-BASIC Modular Exponentiation (only works for 6-digit bases)
Disp "X^Y MOD Z"
Prompt X,Y,Z
If Z<=1
Then
Disp "ERROR"
Return
End
1->W
@embg
embg / Makefile
Created July 7, 2016 21:14 — forked from moloned/Makefile
target:
g++ -o test_levmarq.exe test_levmarq.cpp levmarq.cpp
@embg
embg / gist:619f7b0cfdf4e3a76ebf9cc5a2660d3a
Created April 1, 2016 19:00
Best thing I've ever written
<script>
var doIt = true;
$(document).ready(function(){ if (Date.now() > 1459490400000 && Date.now() < 1459576800000 && doIt){
$('body').html(String($('body').html()).replace(/Scott Peoples/g, 'Scott "White Lightning" Peoples'));
$('body').html(String($('body').html()).replace("var doIt = true;", "var doIt = false;"));
}});
</script>