Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cherry picked windows patches. #14046

Merged
merged 71 commits into from
Nov 8, 2018
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
71 commits
Select commit Hold shift + click to select a range
adec702
cudnn widndows
dzhwinter Aug 17, 2018
963a745
"add comment"
dzhwinter Aug 17, 2018
335398f
dlfnh
dzhwinter Aug 17, 2018
59160e8
"windows support"
dzhwinter Aug 17, 2018
36878d7
comment out backtarce
dzhwinter Aug 17, 2018
64ce121
"windows support"
dzhwinter Aug 17, 2018
5c88cd2
remove werror in windows
dzhwinter Aug 17, 2018
f1a7ae3
"fix cmake error"
dzhwinter Aug 20, 2018
17602ea
windows port of malloc
dzhwinter Aug 20, 2018
c5722eb
merge windows/cudnn
dzhwinter Aug 20, 2018
34f8c9b
windows port
dzhwinter Aug 24, 2018
89f95ea
merge develop branch
dzhwinter Aug 24, 2018
c1ad52f
pre-commit
dzhwinter Aug 24, 2018
cfbf1ba
add source
dzhwinter Aug 24, 2018
a94d4f5
fix math_function compile
dzhwinter Aug 24, 2018
65f144a
fix commit
dzhwinter Aug 24, 2018
c7e0ed8
inference lib
dzhwinter Aug 24, 2018
488a2dd
with ir node
dzhwinter Aug 25, 2018
efd0884
add op registry
dzhwinter Aug 25, 2018
d7f98f3
more platform is done
dzhwinter Aug 25, 2018
26dbe35
add msvc flags and copy lib done
dzhwinter Aug 26, 2018
7dceb8a
check some operators
dzhwinter Aug 26, 2018
2ec589a
float.h fixed
dzhwinter Aug 26, 2018
cd8f3e9
operator module is done
dzhwinter Aug 27, 2018
78aab05
fix more op errors
dzhwinter Aug 27, 2018
b74af56
cpu compile is done
dzhwinter Aug 28, 2018
b78394e
done
dzhwinter Aug 29, 2018
f5329d6
add some synatx
dzhwinter Aug 30, 2018
5e8e7fb
change data type
dzhwinter Aug 30, 2018
dbe90cc
merge develop branch
dzhwinter Sep 1, 2018
b5402d7
Merge remote-tracking branch 'origin/develop' into windows/support
dzhwinter Sep 2, 2018
52d60f8
merge conclit
dzhwinter Sep 2, 2018
5c2637e
tensor util
dzhwinter Sep 2, 2018
75681c0
switch to 9.2
dzhwinter Sep 2, 2018
a0aa2ec
build compile
dzhwinter Sep 2, 2018
379b471
squash commit
dzhwinter Sep 3, 2018
c3e1fb5
add demo
dzhwinter Sep 12, 2018
372caf4
windows staff
dzhwinter Sep 14, 2018
e199953
debug the device context
dzhwinter Sep 14, 2018
85f8dd1
debug version
dzhwinter Sep 14, 2018
3ae9645
compile in linux
wanghaoshuang Oct 14, 2018
b12f7c2
compile in linux.
wanghaoshuang Oct 15, 2018
962061f
windows fix
dzhwinter Oct 15, 2018
804dd7d
merge conflict. both linux and windows pass.
dzhwinter Oct 15, 2018
e41a3fc
fix update to develop hang problem.
dzhwinter Oct 16, 2018
607080e
windows static library
dzhwinter Oct 23, 2018
f9e7cfb
save binary file
wanghaoshuang Oct 23, 2018
5993155
Merge remote-tracking branch 'dzhwinter/windows/support' into windows…
wanghaoshuang Oct 23, 2018
78cf76a
fix linux compile
wanghaoshuang Oct 23, 2018
9e522a4
update cmake
wanghaoshuang Oct 23, 2018
c6dcffc
lb. add debug output
dzhwinter Oct 23, 2018
dbd0075
Merge branch 'windows/support' into lb
dzhwinter Oct 23, 2018
597d921
clean demo_ci
dzhwinter Oct 24, 2018
abe8e20
clean demo_ci
dzhwinter Oct 24, 2018
b154e0b
clean demo_ci
dzhwinter Oct 24, 2018
468467f
update real incnet tester
dzhwinter Oct 24, 2018
09409ba
staged. test speed=49ms in 1080.
dzhwinter Oct 26, 2018
7141deb
add cudnn back. staged.
dzhwinter Oct 26, 2018
c8adc2c
cudnn version. staged.
dzhwinter Oct 29, 2018
ebfe5a0
merge develop branch
dzhwinter Oct 30, 2018
bf2e4cb
cleard. staged
dzhwinter Oct 30, 2018
3167658
add back jit simd instructions. stage.
dzhwinter Oct 31, 2018
9da7b33
details
dzhwinter Nov 1, 2018
1ace55c
merge develop branch
dzhwinter Nov 1, 2018
0a18058
clean cmake. test=develop
dzhwinter Nov 1, 2018
eb2f7ed
refine tests. test=develop
dzhwinter Nov 2, 2018
cc02353
test=develop
dzhwinter Nov 2, 2018
60f70b1
test=develop
dzhwinter Nov 4, 2018
deb4af7
add test
dzhwinter Nov 7, 2018
2835e04
merge develop branch. test=develop
dzhwinter Nov 7, 2018
234a1d9
Merge remote-tracking branch 'origin/develop' into windows/debug
dzhwinter Nov 8, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
merge develop branch
  • Loading branch information
dzhwinter committed Aug 24, 2018
commit 89f95ea25e31a1b5d85626781ffa130216f2db47
5 changes: 0 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -207,11 +207,6 @@ endif()

include(external/threadpool)

include(flags) # set paddle compile flags
include(cudnn) # set cudnn libraries, must before configure
include(cupti)
include(configure) # add paddle env configuration

if(WITH_GPU)
include(cuda)
include(tensorrt)
Expand Down
9 changes: 9 additions & 0 deletions paddle/fluid/framework/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -114,10 +114,19 @@ else()
cc_library(executor SRCS executor.cc DEPS op_registry device_context scope framework_proto glog lod_rank_table feed_fetch_method)
endif()

<<<<<<< HEAD


if (NOT WIN32)
cc_library(parallel_executor SRCS parallel_executor.cc DEPS threaded_ssa_graph_executor scope_buffered_ssa_graph_executor graph graph_viz_pass multi_devices_graph_pass multi_devices_graph_print_pass multi_devices_graph_check_pass)
=======
if (NOT WIN32)
cc_library(parallel_executor SRCS parallel_executor.cc DEPS
threaded_ssa_graph_executor scope_buffered_ssa_graph_executor
graph graph_viz_pass multi_devices_graph_pass
multi_devices_graph_print_pass multi_devices_graph_check_pass
fast_threaded_ssa_graph_executor)
>>>>>>> origin/develop
endif() # NOT WIN32

cc_library(prune SRCS prune.cc DEPS framework_proto)
Expand Down
4 changes: 4 additions & 0 deletions paddle/fluid/operators/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,11 @@ function(op_library TARGET)

#remove windows unsupported op
if (WIN32)
<<<<<<< HEAD
foreach(windows_unsupport_op "nccl_op" "gen_nccl_id_op" "warpctc_op")
=======
foreach(windows_unsupport_op "nccl_op" "gen_nccl_id_op")
>>>>>>> origin/develop
if ("${TARGET}" STREQUAL "${windows_unsupport_op}")
return()
endif()
Expand Down
1 change: 0 additions & 1 deletion paddle/fluid/platform/dynload/cublas.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
#include "paddle/fluid/platform/dynload/dynamic_loader.h"
#include "paddle/fluid/platform/port.h"


namespace paddle {
namespace platform {
namespace dynload {
Expand Down
2 changes: 0 additions & 2 deletions paddle/fluid/platform/dynload/mklml.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,8 @@ limitations under the License. */

#pragma once


#include <mkl.h>
#include <mutex> // NOLINT
#include "paddle/fluid/platform/port.h"
#include "paddle/fluid/platform/dynload/dynamic_loader.h"
#include "paddle/fluid/platform/port.h"

Expand Down
1 change: 0 additions & 1 deletion paddle/fluid/platform/dynload/nccl.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ limitations under the License. */
#include <nccl.h>

#include <mutex> // NOLINT
#include "paddle/fluid/platform/port.h"
#include "paddle/fluid/platform/dynload/dynamic_loader.h"
#include "paddle/fluid/platform/port.h"

Expand Down
1 change: 0 additions & 1 deletion paddle/fluid/platform/dynload/warpctc.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ limitations under the License. */
#pragma once

#include <mutex> // NOLINT
#include "paddle/fluid/platform/port.h"
#include "paddle/fluid/platform/dynload/dynamic_loader.h"
#include "paddle/fluid/platform/port.h"
#include "warpctc/include/ctc.h"
Expand Down
42 changes: 41 additions & 1 deletion paddle/fluid/platform/port.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<<<<<<< HEAD
#pragma once

#include <string>
Expand All @@ -23,4 +24,43 @@ static void* dlsym(void *handle, const char* symbol_name) {
}
} // namespace anoymous

#endif
#endif
=======
// Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved.
//
// 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.

#pragma once

#include <stdexcept>
#include <string>

#if !defined(_WIN32)
#include <dlfcn.h> // for dladdr
#include <execinfo.h> // for backtrace
#else
#include <Shlwapi.h>
#include <Windows.h>

static void* dlsym(void* handle, const char* symbol_name) {
FARPROC found_symbol;
found_symbol = GetProcAddress((HMODULE)handle, symbol_name);

if (found_symbol == NULL) {
throw std::runtime_error(std::string(symbol_name) + " not found.");
}
return reinterpret_cast<void*>(found_symbol);
}

#endif
>>>>>>> origin/develop
9 changes: 9 additions & 0 deletions paddle/fluid/pybind/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<<<<<<< HEAD
set(PYBIND_DEPS pybind python proto_desc memory executor prune feed_fetch_method)
set(PYBIND_SRCS pybind.cc exception.cc protobuf.cc const_value.cc)
if(NOT WIN32)
Expand All @@ -7,12 +8,20 @@ endif()
if(WITH_PYTHON)
if(WITH_AMD_GPU)
hip_library(paddle_pybind SHARED
<<<<<<< HEAD
SRCS ${PYBIND_SRCS}
=======
SRCS pybind.cc exception.cc protobuf.cc const_value.cc recordio.cc
>>>>>>> origin/develop
DEPS ${PYBIND_DEPS}
${GLOB_OP_LIB})
else()
cc_library(paddle_pybind SHARED
<<<<<<< HEAD
SRCS ${PYBIND_SRCS}
=======
SRCS pybind.cc exception.cc protobuf.cc const_value.cc recordio.cc
>>>>>>> origin/develop
DEPS ${PYBIND_DEPS}
${GLOB_OP_LIB})
if(NOT APPLE AND NOT ANDROID AND NOT WIN32)
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.