-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathinit.cu
50 lines (44 loc) · 1.51 KB
/
init.cu
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
* Created by: Hang Zhang
* ECE Department, Rutgers University
* Email: zhang.hang@rutgers.edu
* Copyright (c) 2016
*
* Feel free to reuse and distribute this software for research or
* non-profit purpose, subject to the following conditions:
* 1. The code must retain the above copyright notice, this list of
* conditions.
* 2. Original authors' names are not deleted.
* 3. The authors' names are not used to endorse or promote products
* derived from this software
*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
*/
#include "TH.h"
#include "luaT.h"
#include <THC/THC.h>
#include "THCDeviceTensor.cuh"
#include "THCDeviceTensorUtils.cuh"
#include "common.h"
/* extern function in cutorch */
struct THCState;
#ifdef __cplusplus
extern "C" struct THCState* cutorch_getstate(lua_State* L);
#else
extern struct THCState* cutorch_getstate(lua_State* L);
#endif
#define torch_(NAME) TH_CONCAT_3(torch_, Real, NAME)
#define torch_Tensor TH_CONCAT_STRING_3(torch., Real, Tensor)
#define THCTensor TH_CONCAT_3(TH,CReal,Tensor)
#define THCTensor_(NAME) TH_CONCAT_4(TH,CReal,Tensor_,NAME)
#define THC_Tensor TH_CONCAT_STRING_3(torch., CReal, Tensor)
#define hzproc_(NAME) TH_CONCAT_3(hzproc_, Real, NAME)
#ifdef __cplusplus
extern "C" {
#endif
#include "lib/HZPROC/HZPROC.c"
#include "THCGenerateFloatType.h"
#include "generic/hzproc.c"
#include "THCGenerateFloatType.h"
#ifdef __cplusplus
}
#endif