Skip to content

Commit 1932fb3

Browse files
authored
Enable CUDA support (tensorflow#90)
1 parent af0d295 commit 1932fb3

File tree

10 files changed

+191
-159
lines changed

10 files changed

+191
-159
lines changed

.vscode/c_cpp_properties.json

Lines changed: 85 additions & 82 deletions
Original file line numberDiff line numberDiff line change
@@ -1,83 +1,86 @@
11
{
2-
"configurations": [
3-
{
4-
"name": "Mac",
5-
"includePath": [
6-
"${workspaceFolder}",
7-
"/Library/Developer/CommandLineTools/usr/include/c++/v1",
8-
"/usr/local/include",
9-
"/Library/Developer/CommandLineTools/usr/lib/clang/9.0.0/include",
10-
"/Library/Developer/CommandLineTools/usr/include",
11-
"/usr/include",
12-
"/usr/local/Cellar/node/9.7.1_1/include/node",
13-
"${workspaceFolder}/deps/tensorflow/include"
14-
],
15-
"defines": [],
16-
"intelliSenseMode": "clang-x64",
17-
"browse": {
18-
"path": [
19-
"${workspaceFolder}",
20-
"/Library/Developer/CommandLineTools/usr/include/c++/v1",
21-
"/usr/local/include",
22-
"/Library/Developer/CommandLineTools/usr/lib/clang/9.0.0/include",
23-
"/Library/Developer/CommandLineTools/usr/include",
24-
"/usr/include"
25-
],
26-
"limitSymbolsToIncludedHeaders": true,
27-
"databaseFilename": ""
28-
},
29-
"macFrameworkPath": [
30-
"/System/Library/Frameworks",
31-
"/Library/Frameworks"
32-
],
33-
"compilerPath": "/usr/bin/clang",
34-
"cStandard": "c11",
35-
"cppStandard": "c++17"
36-
},
37-
{
38-
"name": "Linux",
39-
"includePath": [
40-
"/usr/include",
41-
"/usr/local/include",
42-
"${workspaceFolder}",
43-
"/usr/include/node"
44-
],
45-
"defines": [],
46-
"intelliSenseMode": "clang-x64",
47-
"browse": {
48-
"path": [
49-
"/usr/include",
50-
"/usr/local/include",
51-
"${workspaceFolder}"
52-
],
53-
"limitSymbolsToIncludedHeaders": true,
54-
"databaseFilename": ""
55-
},
56-
"compilerPath": "/usr/bin/clang++-3.8",
57-
"cStandard": "c11",
58-
"cppStandard": "c++17"
59-
},
60-
{
61-
"name": "Win32",
62-
"includePath": [
63-
"C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/include",
64-
"${workspaceFolder}"
65-
],
66-
"defines": [
67-
"_DEBUG",
68-
"UNICODE",
69-
"_UNICODE"
70-
],
71-
"intelliSenseMode": "msvc-x64",
72-
"browse": {
73-
"path": [
74-
"C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/include/*",
75-
"${workspaceFolder}"
76-
],
77-
"limitSymbolsToIncludedHeaders": true,
78-
"databaseFilename": ""
79-
}
80-
}
81-
],
82-
"version": 4
83-
}
2+
"configurations": [
3+
{
4+
"name": "Mac",
5+
"includePath": [
6+
"${workspaceFolder}",
7+
"/Library/Developer/CommandLineTools/usr/include/c++/v1",
8+
"/usr/local/include",
9+
"/Library/Developer/CommandLineTools/usr/lib/clang/9.0.0/include",
10+
"/Library/Developer/CommandLineTools/usr/include",
11+
"/usr/include",
12+
"/usr/local/Cellar/node/9.7.1_1/include/node",
13+
"${workspaceFolder}/deps/tensorflow/include"
14+
],
15+
"defines": [],
16+
"intelliSenseMode": "clang-x64",
17+
"browse": {
18+
"path": [
19+
"${workspaceFolder}",
20+
"/Library/Developer/CommandLineTools/usr/include/c++/v1",
21+
"/usr/local/include",
22+
"/Library/Developer/CommandLineTools/usr/lib/clang/9.0.0/include",
23+
"/Library/Developer/CommandLineTools/usr/include",
24+
"/usr/include"
25+
],
26+
"limitSymbolsToIncludedHeaders": true,
27+
"databaseFilename": ""
28+
},
29+
"macFrameworkPath": [
30+
"/System/Library/Frameworks",
31+
"/Library/Frameworks"
32+
],
33+
"compilerPath": "/usr/bin/clang",
34+
"cStandard": "c11",
35+
"cppStandard": "c++17"
36+
},
37+
{
38+
"name": "Linux",
39+
"includePath": [
40+
"/usr/include",
41+
"/usr/local/include",
42+
"${workspaceFolder}",
43+
"${workspaceFolder}/../../.node-gyp/10.1.0/include/node"
44+
],
45+
"defines": [],
46+
"intelliSenseMode": "clang-x64",
47+
"browse": {
48+
"path": [
49+
"/usr/include",
50+
"/usr/local/include",
51+
"${workspaceFolder}",
52+
"${workspaceFolder}/deps/tensorflow/include/tensorflow/c",
53+
"${workspaceFolder}/deps/tensorflow/include/tensorflow/c/eager",
54+
"${workspaceFolder}/../../.node-gyp/10.1.0/include/node"
55+
],
56+
"limitSymbolsToIncludedHeaders": true,
57+
"databaseFilename": ""
58+
},
59+
"compilerPath": "/usr/bin/clang++-3.8",
60+
"cStandard": "c11",
61+
"cppStandard": "c++17"
62+
},
63+
{
64+
"name": "Win32",
65+
"includePath": [
66+
"C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/include",
67+
"${workspaceFolder}"
68+
],
69+
"defines": [
70+
"_DEBUG",
71+
"UNICODE",
72+
"_UNICODE"
73+
],
74+
"intelliSenseMode": "msvc-x64",
75+
"browse": {
76+
"path": [
77+
"C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/include/*",
78+
"${workspaceFolder}"
79+
],
80+
"limitSymbolsToIncludedHeaders": true,
81+
"databaseFilename": ""
82+
}
83+
}
84+
],
85+
"version": 4
86+
}

.vscode/settings.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@
2222
"*.ipp": "cpp",
2323
"array": "cpp",
2424
"initializer_list": "cpp",
25-
"string_view": "cpp"
25+
"string_view": "cpp",
26+
"utility": "cpp"
2627
},
2728
"search.exclude": {
2829
"**/node_modules": true,
@@ -42,9 +43,11 @@
4243
"editor.formatOnSave": true
4344
},
4445
"clang-format.style": "Google",
46+
"C_Cpp.clang_format_fallbackStyle": "Google",
4547
"files.insertFinalNewline": true,
4648
"editor.detectIndentation": false,
4749
"editor.wrappingIndent": "none",
4850
"typescript.tsdk": "node_modules/typescript/lib",
49-
"clang-format.executable": "${workspaceRoot}/node_modules/.bin/clang-format"
51+
"clang-format.executable": "${workspaceRoot}/node_modules/.bin/clang-format",
52+
"C_Cpp.intelliSenseEngineFallback": "Enabled"
5053
}

binding.gyp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
'libraries' : [
2323
'-Wl,-rpath,<@(tensorflow_lib_dir)',
2424
'-ltensorflow',
25-
'-ltensorflow_framework',
2625
],
2726
'library_dirs' : ['<(tensorflow_lib_dir)'],
2827
'variables': {

0 commit comments

Comments
 (0)