MUDA
Loading...
Searching...
No Matches
cuda_arch.h
1
#pragma once
2
#include <cuda.h>
3
namespace
muda
4
{
5
struct
is_cuda_arch
6
{
7
#ifdef __CUDA_ARCH__
8
constexpr
static
bool
value =
true
;
9
#else
10
constexpr
static
bool
value =
false
;
11
#endif
12
};
13
14
constexpr
bool
is_cuda_arch_v = is_cuda_arch::value;
15
}
// namespace muda
muda::is_cuda_arch
Definition
cuda_arch.h:6
src
muda
type_traits
cuda_arch.h
Generated by
1.9.8