common.cuh 250 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
#pragma once

template <class T1, class T2>
struct is_same
{
    static const bool value = false;
};

template <class T>
struct is_same<T, T>
{
    static const bool value = true;
};
Chao Liu's avatar
Chao Liu committed
14
15

__device__ unsigned get_thread_local_id() { return threadIdx.x; }