forked from facebookarchive/caffe2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix the CMake issues caused by internal changes
- Loading branch information
Showing
4 changed files
with
61 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# ---[ GPU files | ||
# ------[ cuDNN | ||
file(GLOB tmp *_cudnn.cc) | ||
set(Caffe2_GPU_SRCS ${Caffe2_GPU_SRCS} ${tmp}) | ||
# ------[ general GPU | ||
file(GLOB tmp *_gpu.cc) | ||
set(Caffe2_GPU_SRCS ${Caffe2_GPU_SRCS} ${tmp}) | ||
# ------[ CUDA sources | ||
file(GLOB tmp *.cu) | ||
set(Caffe2_GPU_SRCS ${Caffe2_GPU_SRCS} ${tmp}) | ||
# exclude test files | ||
file(GLOB tmp *_test.cc) | ||
exclude(Caffe2_GPU_SRCS "${Caffe2_GPU_SRCS}" ${tmp}) | ||
|
||
# ---[ CPU files. | ||
file(GLOB tmp *.cc) | ||
set(Caffe2_CPU_SRCS ${Caffe2_CPU_SRCS} ${tmp}) | ||
# exclude test files and gpu files | ||
file(GLOB tmp *_test.cc) | ||
exclude(Caffe2_CPU_SRCS "${Caffe2_CPU_SRCS}" ${tmp}) | ||
exclude(Caffe2_CPU_SRCS "${Caffe2_CPU_SRCS}" ${Caffe2_GPU_SRCS}) | ||
|
||
# ---[ GPU test files | ||
# ------[ cuDNN | ||
file(GLOB tmp *_cudnn_test.cc) | ||
set(Caffe2_GPU_TEST_SRCS ${Caffe2_GPU_TEST_SRCS} ${tmp}) | ||
# ------[ general GPU | ||
file(GLOB tmp *_gpu_test.cc) | ||
set(Caffe2_GPU_TEST_SRCS ${Caffe2_GPU_TEST_SRCS} ${tmp}) | ||
|
||
# ---[ CPU test files | ||
file(GLOB tmp *_test.cc) | ||
set(Caffe2_CPU_TEST_SRCS ${Caffe2_CPU_TEST_SRCS} ${tmp}) | ||
exclude(Caffe2_CPU_TEST_SRCS "${Caffe2_CPU_TEST_SRCS}" ${Caffe2_GPU_TEST_SRCS}) | ||
|
||
# ---[ Send the lists to the parent scope. | ||
set(Caffe2_CPU_SRCS ${Caffe2_CPU_SRCS} PARENT_SCOPE) | ||
set(Caffe2_GPU_SRCS ${Caffe2_GPU_SRCS} PARENT_SCOPE) | ||
set(Caffe2_CPU_TEST_SRCS ${Caffe2_CPU_TEST_SRCS} PARENT_SCOPE) | ||
set(Caffe2_GPU_TEST_SRCS ${Caffe2_GPU_TEST_SRCS} PARENT_SCOPE) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Copyright (c) 2016-present, Facebook, Inc. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
############################################################################## | ||
|
||
from __future__ import absolute_import | ||
from __future__ import division | ||
from __future__ import print_function | ||
from __future__ import unicode_literals | ||
|