Skip to content

Instantly share code, notes, and snippets.

View dmikushin's full-sized avatar
🤓

Dmitry Mikushin dmikushin

🤓
View GitHub Profile
@dmikushin
dmikushin / cmp_check.c
Last active March 22, 2016 15:17
_mm256_cmp_ps vs _mm256_cmp_pd
// This sketch essentially checks if all elements of AVX vector are greater than zero
// In infinite loop we ensure equality of two implementations
//
// gcc -mavx cmp_check.c -o cmp_check -O3 -ffast-math
#include <assert.h>
#include <stdlib.h>
#include <stdio.h>
#include <x86intrin.h>
@dmikushin
dmikushin / test.cpp
Created January 10, 2015 13:20
C++11 compilation case
template<class PriorityEvaluation, class TProcInfo>
class ProcInfoWithPriority : public TProcInfo
{
};
template<class TProcInfo, class TCustom = void>
class ProcInfoVisitor
{
};
@dmikushin
dmikushin / cupti.cu
Created January 7, 2015 18:47
Querying GPU environment profiles with CUPTI
// $ cat makefile
// CUPTI = /opt/cuda/extras/CUPTI
//
// all: cupti
//
// cupti: cupti.cu
// nvcc -I$(CUPTI)/include -arch=sm_30 $< -o $@ -L$(CUPTI)/lib64 -lcupti -Xlinker -rpath=$(CUPTI)/lib64
//
// clean:
// rm -rf cupti