1562 Commits

Author SHA1 Message Date
0f68eac94a Fixing an error building with CUDA on windows (#2004)
* Fixing an error building with CUDA on windows

* Fixing cublas issue too
2018-02-22 23:37:02 -08:00
fe5fe7bad2 CMake cuda targets (#1993)
* wip: cuda targets

* Remove FindCuDNN.cmake as it is no longer needed
2018-02-22 15:54:34 -05:00
090850e89b Adding guards around adding protobuf targets (#1997)
* Adding guards around adding protobuf targets

* Moving include_dirs add into target creation
2018-02-21 18:48:30 -08:00
0d641145a1 Fix public protobuf interface (#1961)
* Fix public protobuf interface - wip

* Try turn on custom protobuf in mac jenkins.

* Adding back auto-fallback protobuf option

* Address typos pointed out by reviewers
2018-02-21 00:39:00 -05:00
5439ab3cdc Remove gf library in MKL (#1976)
* Remove OpenGL code from benchmark

* Make it possible to print plot in the ipython notbook

* Create the blob if the blob is not specified in the init net

* Do not use gf library for MKL. Even after I install the entire MKL library it is still not found. After removing it, the MKL code can still run
2018-02-20 15:17:34 -08:00
1c2cef10e2 Make zstd position independent
Summary: Closes https://github.com/caffe2/caffe2/pull/1975

Differential Revision: D7012872

Pulled By: sf-wind

fbshipit-source-id: 31a8f787faf99894ac25508d85e1eb0f0e8e84a2
2018-02-16 14:35:37 -08:00
bd22b83d62 Fix nccl cmake files
Summary: Closes https://github.com/caffe2/caffe2/pull/1963

Differential Revision: D6994392

Pulled By: bddppq

fbshipit-source-id: 4ab6a8f7dcb4469bdd3e152559ff3474984776fc
2018-02-14 16:04:11 -08:00
284b3c3764 Fix Android build with binaries
Summary:
After we removed android-cmake submodule and switched to android.cmake.toolchain from Android NDK, the code that builds cpufeatures dependency is no longer valid. This commit fixes it.
Closes https://github.com/caffe2/caffe2/pull/1957

Differential Revision: D6990082

Pulled By: Maratyszcza

fbshipit-source-id: ccbe8190e30e097474a2876ed4c0b263bcb117ef
2018-02-14 11:10:52 -08:00
86803004e3 Fix cmake function to resolve libraries correctly
Summary:
Previous behavior may fail to resolve the correct library name. A rework of https://github.com/caffe2/caffe2/pull/1935 as it was messed up in the rebase...
Closes https://github.com/caffe2/caffe2/pull/1950

Reviewed By: bddppq

Differential Revision: D6974530

Pulled By: yinghai

fbshipit-source-id: 924b653e8ac0b68c46341edfd3eb05d9cc0155f2
2018-02-12 22:22:55 -08:00
6df58dac1d Make NNApi build
Summary:
To build with tests and benchmarks
`./scripts/build_android.sh -G Ninja -DBUILD_TEST=ON -DUSE_NNAPI=ON`
To run unit test
`adb push build_android/bin/nnapi_test data/local/tmp`
`adb shell "cd data/local/tmp &&./nnapi_test`
To run benchmark
`adb push build_android/bin/nnapi_benchmark data/local/tmp`
`adb shell "cd data/local/tmp &&./nnapi_benchmark`
Tested on Google PIxel 2 XL with android 8.1
Closes https://github.com/caffe2/caffe2/pull/1918

Reviewed By: Maratyszcza

Differential Revision: D6944604

Pulled By: hlu1

fbshipit-source-id: 462f010117ae4628b23bef506c41397de3817ad4
2018-02-08 19:02:18 -08:00
08113f922b Vendor Python dependencies of NNPACK
Summary:
Include six, enum34, and PeachPy as Caffe2 submodules, and use the versions from submodules instead of downloading them during configuration time
Closes https://github.com/caffe2/caffe2/pull/1917

Reviewed By: orionr

Differential Revision: D6938735

Pulled By: Maratyszcza

fbshipit-source-id: 841a6c47a1cd003a19f48f6c256aa4d9eb2cc6e4
2018-02-08 15:48:56 -08:00
3108ce63ba Back out "[caffe2][PR] Vendor Python dependencies of NNPACK"
Summary:
Original commit changeset: d0c1c7681605

Reverting due to broken OSS build due to this commit

Reviewed By: bddppq

Differential Revision: D6935666

fbshipit-source-id: 955cfeb6d5a4ed265b2e099094cfb5bfe960ff95
2018-02-08 01:34:22 -08:00
9093eb1ba0 Vendor Python dependencies of NNPACK
Summary:
Include six, enum34, and PeachPy as Caffe2 submodules, and use the versions from submodules instead of downloading them during configuration time
Closes https://github.com/caffe2/caffe2/pull/1901

Differential Revision: D6930731

Pulled By: Maratyszcza

fbshipit-source-id: d0c1c7681605d957de6f51bd24fbb25afc0f282f
2018-02-07 17:48:06 -08:00
b3c8b3d132 Adding more summary output to make debugging CUDA problems easier
Summary: Closes https://github.com/caffe2/caffe2/pull/1902

Reviewed By: orionr

Differential Revision: D6917525

Pulled By: pjh5

fbshipit-source-id: af8c3d1adcd528a49bcd2885207304e199a06f6f
2018-02-06 16:04:50 -08:00
61ad0e486b cmake: python packages now install to the cannonical directory
Summary:
Addresses issue #1676

Now when `make install` is run, the `caffe2` (and `caffe`) python modules will be installed into the correct site-packages directory (relative to the prefix) instead of directly in the prefix.
Closes https://github.com/caffe2/caffe2/pull/1677

Reviewed By: pietern

Differential Revision: D6710247

Pulled By: bddppq

fbshipit-source-id: b49167d48fd94d87f7b7c1ebf0f187ec6a203470
2018-02-05 17:05:34 -08:00
39b351ecb0 Fix build with NNPACK
Summary:
- Fix path to FXdiv and FP16 dependencies
- Link cpuinfo library
- Pull NNPACK fix for PYTHONPATH handling when launching PeachPy
- Pull cpuinfo fix for cross-compiling on Linux for Android
- Pull cpuinfo fix for CPUINFO_LIBRARY_TYPE support
- Pull cpuinfo fix for iOS builds
Closes https://github.com/caffe2/caffe2/pull/1869

Differential Revision: D6881428

Pulled By: Maratyszcza

fbshipit-source-id: 7b4115daa090096dbd97303503792e7b144fbb43
2018-02-01 20:47:10 -08:00
7ee286c80a Vendor NNPACK dependencies with Caffe2 2018-01-31 21:05:07 -08:00
65b0474527 Fix for finding protobuf on windows
Summary:
On windows when using a prebuilt version of protobuf (such as provided by vcpkg) we need to set the PROTOBUF_LIBRARIES and PROTOBUF_INCLUDE_DIRS manually.

The CAFFE2_API decoration should only be defined to dllexport when building shared libs.
Closes https://github.com/caffe2/caffe2/pull/1854

Differential Revision: D6867345

Pulled By: Yangqing

fbshipit-source-id: d4d48f709d313af9dde103fc8dfbfc217261715b
2018-01-31 18:03:15 -08:00
91d76f5dbd Reapply Windows fix
Summary:
Last fix was uncommitted due to a bug in internal build (CAFFE2_API causing error). This one re-applies it as well as a few more, especially enabling gtest.

Earlier commit message: Basically, this should make windows {static_lib, shared_lib} * {static_runtime, shared_runtime} * {cpu, gpu} work other than gpu shared_lib, which willyd kindly pointed out a symbol limit problem. A few highlights:
(1) Updated newest protobuf.
(2) use protoc dllexport command to ensure proper symbol export for windows.
(3) various code updates to make sure that C2 symbols are properly shown
(4) cmake file changes to make build proper
(5) option to choose static runtime and shared runtime similar to protobuf
(6) revert to visual studio 2015 as current cuda and msvc 2017 do not play well together.
(7) enabled gtest and fixed testing bugs.

Earlier PR is #1793

Closes https://github.com/caffe2/caffe2/pull/1827

Differential Revision: D6832086

Pulled By: Yangqing

fbshipit-source-id: 85f86e9a992ee5c53c70b484b761c9d6aed721df
2018-01-29 10:03:28 -08:00
657214543c add back cuda auto arch detection
Summary:
This was removed in an earlier version. Anyway, I suspect this will make jenkins a bit unhappy (do we use gpu instances for building as well?) so firing a PR to test.
Closes https://github.com/caffe2/caffe2/pull/1833

Differential Revision: D6834889

Pulled By: Yangqing

fbshipit-source-id: bc501cdb9d83a32ad38d24e972c2bfec5242d767
2018-01-29 10:03:27 -08:00
d481afb125 Modernizing glog. Same as gflags.
Summary:
Same as PR #1819.
Closes https://github.com/caffe2/caffe2/pull/1830

Differential Revision: D6832171

Pulled By: Yangqing

fbshipit-source-id: 462a9b807e78d60748160a0cfd24932c9003fcc3
2018-01-28 18:21:22 -08:00
73ed0d5ced Modernizing the gflags dependency in cmake.
Summary:
Historically, for interface dependent libraries (glog, gflags and protobuf), exposing them in Caffe2Config.cmake is usually difficult.

New versions of glog and gflags ship with new-style cmake targets, so one does not need to use variables. New-style targets also make it easier for people to depend on them in installed config files.

This diff modernizes the gflags library, and still provides a fallback path if the installed gflags does not have cmake config files coming with it.

It does change one behavior of the build process though - when one specifies -DUSE_GFLAGS=ON but gflags cannot be found, the old script automatically turns it off but the new script crashes, forcing the user to specify USE_GFLAGS=OFF.
Closes https://github.com/caffe2/caffe2/pull/1819

Differential Revision: D6826604

Pulled By: Yangqing

fbshipit-source-id: 210f3926f291c8bfeb24eb9671e5adfcbf8cf7fe
2018-01-27 19:31:14 -08:00
8c02674964 Revert D6817719: [caffe2][PR] Better support for windows
Summary:
This reverts commit d286264fccc72bf90a2fcd7da533ecca23ce557e

bypass-lint

An infra SEV is better than not reverting this diff.
If you copy this password, see you in SEV Review!
cause_a_sev_many_files

Differential Revision: D6817719

fbshipit-source-id: 8fe0ad7aba75caaa4c3cac5e0a804ab957a1b836
2018-01-26 06:08:49 -08:00
8aa8eaabb1 Better support for windows
Summary:
Basically, this should make windows {static_lib, shared_lib} * {static_runtime, shared_runtime} * {cpu, gpu} work. A few highlights:

(1) Updated newest protobuf.
(2) use protoc dllexport command to ensure proper symbol export.
(3) various code updates to make sure that C2 symbols are properly shown
(4) cmake file changes to make build proper
(5) option to choose static runtime and shared runtime similar to protobuf
(6) revert to visual studio 2015 as current cuda and msvc 2017 do not play well together.
Closes https://github.com/caffe2/caffe2/pull/1793

Reviewed By: dzhulgakov

Differential Revision: D6817719

Pulled By: Yangqing

fbshipit-source-id: d286264fccc72bf90a2fcd7da533ecca23ce557e
2018-01-26 00:48:43 -08:00
3e8465bc02 Check if system has protobuf package when it already has protoc command
Summary:
When system has protobuf package but hasn't protoc, cmake will be success:

> -- ******** Summary ********
-- General:
--   CMake version         : 3.5.1
--   CMake command         : /usr/bin/cmake
--   Git version           : v0.8.1-967-g27d12d8-dirty
--   System                : Linux
--   C++ compiler          : /usr/bin/c++
--   C++ compiler version  : 5.4.0
--   Protobuf compiler     : PROTOBUF_PROTOC_EXECUTABLE-NOTFOUND
--   Protobuf include path : /usr/include
--   Protobuf libraries    : optimized;/usr/lib/x86_64-linux-gnu/libprotobuf.so;debug;/usr/lib/x86_64-linux-gnu/libprotobuf.so;-lpthread
...

Then make will be failed.
This submit make it to check protobuf package only when protoc has been found.

This pull request is a clone of [1781](https://github.com/caffe2/caffe2/pull/1781), that pull request closed by mistake.
Closes https://github.com/caffe2/caffe2/pull/1792

Differential Revision: D6800513

Pulled By: pietern

fbshipit-source-id: 79a77a139f342ae0aaa2c37fc1d9a74e28a08422
2018-01-24 13:45:30 -08:00
27f4041738 Checking performance flags during init.
Summary:
Adds 2 features:
(1) In cmake, allow the use of -march=native
(2) During initialization, check if Caffe2 is built with matching cpu
features of the current machine.

This helps us guarding performance claims in case the Caffe2 baseline is
built with limited computation capability.

Currently only added avx, avx2 and fma which are common.
Closes https://github.com/caffe2/caffe2/pull/1775

Reviewed By: ezyang

Differential Revision: D6772059

Pulled By: Yangqing

fbshipit-source-id: 884a3d7c7a71ed9631b7c6269ae95d842a09e1bd
2018-01-22 14:04:11 -08:00
b28d5a3586 Build doxygen docs with cmake and fix catalog generation
Summary:
This updates https://github.com/caffe2/caffe2/pull/1096/ to build doxygen docs with cmake and fixes operator catalog generation. See the new README.md for details, but you can run

```
mkdir build && cd build
cmake -DBUILD_DOCS=ON .. && make
```
and

```
python caffe2/python/docs/github.py ~/c2docs/_docs/operators-catalogue.md
```

to generate docs.

There was one weird issue in `generator.py` that we sometimes receive tuples and sometimes objects. I handled this just by testing `isinstance`, but we might want to be more principled in the future.
Closes https://github.com/caffe2/caffe2/pull/1758

Reviewed By: pietern

Differential Revision: D6752127

Pulled By: orionr

fbshipit-source-id: 9ba9ad8efc920b27a57327f8a7d3050f3650d4ce
2018-01-18 18:47:59 -08:00
e79eea2c11 Use protoc RPATH to figure out its install prefix
Summary:
[x] Have to rebase
[x] Have to ensure this works on macOS + Anaconda
Closes https://github.com/caffe2/caffe2/pull/1741

Differential Revision: D6714172

Pulled By: pietern

fbshipit-source-id: 43a16d99a6ddf821a35b512c780cdfa35a721219
2018-01-12 17:39:11 -08:00
4357dee097 Adapting conda build to work for ubuntu and adding a flag to control precedence of Anaconda include dirs
Summary:
This should fix Protobuf version problems on all Anaconda builds by putting include directories under Anaconda before all other include directories.
Closes https://github.com/caffe2/caffe2/pull/1728

Reviewed By: orionr

Differential Revision: D6698435

Pulled By: pjh5

fbshipit-source-id: f73f4a5ebb4ca91db14770a88a704ace69d37ba4
2018-01-11 12:01:04 -08:00
224493d9ce NNPACK: Use new bindings and custom thread pool
Summary:
This change should dramatically (~10X) improve performance of convolution with NNPACK engine
Closes https://github.com/caffe2/caffe2/pull/1730

Reviewed By: sf-wind

Differential Revision: D6695895

Pulled By: Maratyszcza

fbshipit-source-id: 26291916811ef4cb819a59aec848c4e23668e568
2018-01-11 10:48:12 -08:00
90db3fbad2 Include CMake version in configuration summary
Summary: Closes https://github.com/caffe2/caffe2/pull/1731

Reviewed By: Yangqing

Differential Revision: D6699495

Pulled By: pietern

fbshipit-source-id: 4c30ea595f8ea3b0c7bffac15e80c7412b516a16
2018-01-10 17:17:10 -08:00
ab638020f8 Backport FindCUDA functionalities from CMake
Summary:
This is in principle similar to #1612 and is tested on Windows 2017. CMake passes, although there are still bugs in the MSVC compiler that prevents cuda to compile properly.

The difference between this and #1612 is that this diff explicitly puts the CMake files into a separate folder and uses a MiscCheck.cmake chunk of code to test whether we need to include them. See README.txt for more details.
Closes https://github.com/caffe2/caffe2/pull/1727

Reviewed By: pietern

Differential Revision: D6693656

Pulled By: Yangqing

fbshipit-source-id: a74b0a1fde436d7bb2002a56affbc7bbb41ec621
2018-01-10 16:36:03 -08:00
cd9d0f4561 Link cpuinfo when using external NNPACK
Summary:
Close #1685
Closes https://github.com/caffe2/caffe2/pull/1722

Differential Revision: D6686071

Pulled By: Maratyszcza

fbshipit-source-id: bbe86bfd479376bc7cdfdd0bad3896f1c2356216
2018-01-09 12:50:52 -08:00
a7cc653139 cmake: handle CUDA 9.1 in GCC version check
Summary:
GCC version check is currently being skipped when using the
newly released CUDA 9.1.

This will also handle other CUDA 9.x minor releases if any,
reducing our work if there are such releases like 9.2. This
assumes that the next major CUDA version will be 10.0,
needing adjustment only after such major version is
released.
Closes https://github.com/caffe2/caffe2/pull/1658

Differential Revision: D6659000

Pulled By: pietern

fbshipit-source-id: 79291b5da9d4e8b4f2c7ac82fe2b1e7939438bc9
2018-01-03 17:42:55 -08:00
8fd3888c4c Provide CMake support for contrib/prof
Summary:
`contrib/prof` provides functionality for profiling (eg. `prof_dag`) but no CMake.
Hence, provide CMake support for building it.

Reviewed By: Yangqing

Differential Revision: D6640488

fbshipit-source-id: 9ed8095b10d7c0337db061206daf2a66f41f4713
2018-01-02 16:02:32 -08:00
efa7c895f6 Misc Windows lint
Summary: Closes https://github.com/caffe2/caffe2/pull/1656

Differential Revision: D6633052

Pulled By: Yangqing

fbshipit-source-id: 5eeb3912fc769cfd06d252f3ed1d8d5f2a207cfc
2017-12-23 20:07:27 -08:00
5d6dacaafe Enable building operator QuantDecompZstd
Summary:
Make operator QuantDecompZstd buildable in open source. The operator is not built by default. Need to specify -DBUILD_SHARE_DIR=ON -DUSE_ZSTD=ON to build it.

Test plans: Build android caffe2 with the change without issue. Run a model with the operator successfully.
Closes https://github.com/caffe2/caffe2/pull/1613

Reviewed By: Yangqing

Differential Revision: D6556723

Pulled By: sf-wind

fbshipit-source-id: 453a7d787a55928f2dea1ed2b99f2df011aa8d26
2017-12-21 17:47:05 -08:00
e0ebd9a14e Check GCC version on Ubuntu
Summary:
Thanks to feldim2425 we know that GCC 5 in Ubuntu 17.04 and later
doesn't define the macro _GLIBCXX_USE_C99 and by extension the
std::to_string, std::stoi, and std::stod functions (and probably
more). Instead of avoiding using these functions, we simply recommend
people to use GCC 6 or higher on the newer Ubuntu versions where GCC 5
doesn't work.

As a side note, CUDA 8.0 is compatible with GCC up to version 5. This
implies that compiling Caffe2 with CUDA on Ubuntu >= 17.10 implies
using CUDA >= 9.0. If you need to compile with CUDA 8.0 and are on
Ubuntu, you are stuck on version 16.04 or lower.

I verified this fix by running cmake on Ubuntu 17.10 with
-DCMAKE_CXX_COMPILER=/usr/bin/g++5 and observing the fatal error.

This closes #1633.
Closes https://github.com/caffe2/caffe2/pull/1645

Differential Revision: D6620812

Pulled By: pietern

fbshipit-source-id: 29af88cad9bede4fd952084c404c85db05baa9c4
2017-12-21 10:51:50 -08:00
46054ddb5c Run MiscCheck.cmake earlier in CMake process
Summary:
This means warnings and errors fire sooner rather than later.

This requires a fix for an issue where CMAKE_REQUIRED_FLAGS propagates
to some unrelated check, which then fails, because the Android
compiler doesn't support -mavx2.
Closes https://github.com/caffe2/caffe2/pull/1646

Differential Revision: D6620129

Pulled By: pietern

fbshipit-source-id: 4d1185406ebee3a523d39811bca6783bee82c898
2017-12-21 09:17:26 -08:00
54342287fe Look for NCCL in CUDA_TOOLKIT_ROOT_DIR
Summary: Closes https://github.com/caffe2/caffe2/pull/1611

Reviewed By: dzhulgakov

Differential Revision: D6550168

Pulled By: pietern

fbshipit-source-id: e034ce4057d37bfc8b53949c56cbcb701ea5d958
2017-12-12 21:50:49 -08:00
b886498f62 Don't use CMake generator expression for in-tree protoc build
Summary:
This fixes the in-tree protoc build on CentOS 7 (that ships with super old protobuf version).
Closes https://github.com/caffe2/caffe2/pull/1595

Differential Revision: D6529307

Pulled By: pietern

fbshipit-source-id: ac81c7cd884846854b4ffd4909377e87d93bddc3
2017-12-09 13:33:30 -08:00
73f6715f47 Do not link against libpython when building python bindings
Summary:
our cmake build used to link against libpython.so with its absolute path (instead of -LSOME_LIB_PATH -lpython), so at runtime loader will think it needs the libpython.so at that specific path, and so load in an additional libpython.so, which causes the python binding built with one python installation not reusable by another (maybe on same machine or sometimes even not on same machine). The solution is quite simple, which is we don't link against libpython, leave all the python related symbols unresolved at build time, they will be resolved at runtime when imported into python.
Closes https://github.com/caffe2/caffe2/pull/1514

Reviewed By: dzhulgakov

Differential Revision: D6412405

Pulled By: bddppq

fbshipit-source-id: 9ff5b752ae3806bfac94085942f82d89c304c887
2017-11-27 08:47:08 -08:00
26c5e5d5d9 Use EIGEN3_INCLUDE_DIR for Eigen includes
Summary:
The plural version is not defined in the CentOS CMake module.
Verified EIGEN3_INCLUDE_DIR is defined in the Ubuntu CMake module.

This fixes the build on CentOS when using system Eigen3.
Closes https://github.com/caffe2/caffe2/pull/1505

Differential Revision: D6390712

Pulled By: pietern

fbshipit-source-id: b8abb14a62e0ff9fa9c920866504da0e75786c0d
2017-11-21 15:53:38 -08:00
ad3e619198 Bring back CUDA_ARCH_NAME=Manual
Summary:
This should also be ported to Gloo since its Cuda.cmake was
synchronized to Caffe2 in #1256.

Verified that running CMake with `-DCUDA_ARCH_NAME=Manual` and
`-DCUDA_ARCH_BIN=70` ends up running nvcc with `-gencode
arch=compute_70,code=sm_70`.

Closes #1460.
Closes https://github.com/caffe2/caffe2/pull/1487

Reviewed By: bwasti

Differential Revision: D6376222

Pulled By: pietern

fbshipit-source-id: 563a2947567a2af8a0e64475b346a19d76545ed3
2017-11-20 13:51:21 -08:00
b431526dbe Disable protobuf libprotoc and protoc build for cross compilation.
Summary:
Also bumped third_party/protobuf to v3.4.1 similar to #1462 . cc pietern
Closes https://github.com/caffe2/caffe2/pull/1466

Reviewed By: pietern

Differential Revision: D6322210

Pulled By: Yangqing

fbshipit-source-id: 00f72472b71d1903a2705daf56652e4fb3fc021e
2017-11-14 12:06:02 -08:00
c5bcd5560c Adding zstd to build
Summary:
This is in order for us to share compression ops to oss.
Closes https://github.com/caffe2/caffe2/pull/1463

Reviewed By: hlu1

Differential Revision: D6319101

Pulled By: Yangqing

fbshipit-source-id: 16c94e71fc3efe256054a648170aaf7702e5bcfe
2017-11-13 22:18:44 -08:00
f600056f48 Allow build with CUDA 9.0
Summary:
This correctly adds handling of CUDA 8.0 and 9.0 by cmake.

**Discussion:**
CUDA 9.0 is currently not handled by cmake. When trying to build
with it and gcc6, the following cmake error is shown:

-- CUDA detected: 9.0
...
CMake Error at cmake/Dependencies.cmake:332 (message):
  CUDA 8.0 is not compatible with GCC version >= 6.  Use the following option
  to use another version (for example):
    -DCUDA_HOST_COMPILER=/usr/bin/gcc-5
Closes https://github.com/caffe2/caffe2/pull/1392

Differential Revision: D6317033

Pulled By: pietern

fbshipit-source-id: 08b89f21b994af52533d5afaaa62f26e2e94aee8
2017-11-13 14:33:31 -08:00
0b476e6456 CMake: remove unneeded dependency with OpenBLAS
Summary:
Do not try to link against `libcblas.so` when using the OpenBLAS
back-end. This fixes #763.

I briefly checked the OpenBLAS repository and as far as I can tell, the OpenBLAS build script by build never created a library called _cblas_.
Closes https://github.com/caffe2/caffe2/pull/1420

Differential Revision: D6283019

Pulled By: pietern

fbshipit-source-id: 53cd4455bdc63ee9f31d5bca9822844548350ae3
2017-11-09 14:04:39 -08:00
febe45ebb4 Disable NNPACK build on unsupported CPU architectures
Summary:
Few people complained in NNPACK repo about broken build on PPC64, as it specifically whitelists supported architecture in its CMakeLists.txt, and refuses to build on unsupported platforms. This commit explicitly disables NNPACK build (as part of Caffe2 build) on unsupported architectures.
Closes https://github.com/caffe2/caffe2/pull/1439

Differential Revision: D6288999

Pulled By: Maratyszcza

fbshipit-source-id: 76c40e9ce882356944b63968df8fd853f21ecd35
2017-11-09 13:48:05 -08:00
1021402136 Compile nnpack and pthreadpool with -fPIC
Summary: Closes https://github.com/caffe2/caffe2/pull/1428

Reviewed By: Maratyszcza

Differential Revision: D6240390

Pulled By: pietern

fbshipit-source-id: 6d441bbfda81ce79e3c824ec28eec0b2cdd8c7cd
2017-11-03 20:19:26 -07:00