-
Notifications
You must be signed in to change notification settings - Fork 57
/
Copy pathbinding.gyp
52 lines (52 loc) · 1.24 KB
/
binding.gyp
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
51
52
{
"targets": [
{
"target_name": "cuda",
"sources": [
"src/bindings.cpp",
"src/ctx.cpp",
"src/device.cpp",
"src/function.cpp",
"src/mem.cpp",
"src/module.cpp"
],
'conditions': [
[ 'OS=="mac"', {
'libraries': ['-framework CUDA'],
'include_dirs': ['/usr/local/include'],
'library_dirs': ['/usr/local/lib']
}],
[ 'OS=="linux"', {
'libraries': ['-lcuda'],
'include_dirs': ['/usr/local/include'],
'library_dirs': ['/usr/local/lib']
}],
[ 'OS=="win"', {
'conditions': [
['target_arch=="x64"',
{
'variables': { 'arch': 'x64' }
}, {
'variables': { 'arch': 'Win32' }
}
],
],
'variables': {
'cuda_root%': '$(CUDA_PATH)'
},
'libraries': [
'-l<(cuda_root)/lib/<(arch)/cuda.lib',
],
"include_dirs": [
"<(cuda_root)/include",
],
}, {
"include_dirs": [
"/usr/local/cuda-5.0/include",
"/usr/local/cuda/include"
],
}]
]
}
]
}