mem_conf.cpp 296 Bytes
Newer Older
incardon's avatar
incardon committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include "config.h"
#include "mem_conf.hpp"

size_t openfpm_ofpmmemory_compilation_mask()
{
	size_t compiler_mask = 0;

	#ifdef CUDA_ON_CPU
	compiler_mask |= 0x1;
	#endif

	#ifdef __NVCC__
	compiler_mask |= 0x02;
	#endif

	#ifdef CUDA_GPU
	compiler_mask |= 0x04;
	#endif

	return compiler_mask;
}