Comments (2)
Your build is configured.
1) Activate Conda environment (if not already enabled):
$ conda activate /usr/local/opt/src/plaidml/.cenv
$ # consider to restore original $CC and $CXX
$ export CXX="x86_64-apple-darwin13.4.0-clang++"
$ export CC="x86_64-apple-darwin13.4.0-clang"
2) Build PlaidML and Plaidbench:
$ cd /usr/local/opt/src/plaidml/build-x86_64/Release
$ ninja && ninja plaidbench_py
3) Setup a device:
$ ninja -C /usr/local/opt/src/plaidml/build-x86_64/Release setup
Non-interactive:
$ export PLAIDML_DEVICE_IDS=llvm_cpu.0
$ export PLAIDML_EXPERIMENTAL=1
4) Run unit tests (check build):
$ cd /usr/local/opt/src/plaidml/build-x86_64/Release
$ ninja check-smoke
5) Benchmark (keras: resnet50, vgg16, vgg19, xception):
$ cd /usr/local/opt/src/plaidml/build-x86_64/Release
$ export OMP_PROC_BIND=TRUE OMP_NUM_THREADS=8
$ LD_PRELOAD=/usr/local/opt/src/plaidml/.cenv/lib/libtcmalloc.so \
PYTHONPATH=${PWD} \
python3 plaidbench/plaidbench.py -n128 keras resnet50
Install packages (another environment):
$ # consider pip-flags --no-deps --force-reinstall
$ python3 -m pip install /usr/local/opt/src/plaidml/build-x86_64/Release/*.whl
(/usr/local/opt/src/plaidml/.cenv) _brew@nneka plaidml % cd build-x86_64/Release
(/usr/local/opt/src/plaidml/.cenv) _brew@nneka Release % ninja && PYTHONPATH=$PWD python plaidml/plaidml_setup.py
[0/2] Re-checking globbed directories...
[1/1557] Building CXX object _deps/llvm-project-build/projects/openmp/runtime/src/CMakeFiles/omp.dir/kmp_utility.cpp.o
FAILED: _deps/llvm-project-build/projects/openmp/runtime/src/CMakeFiles/omp.dir/kmp_utility.cpp.o
from plaidml.
After doing
brew install llvm
brew install libomp
brew upgrade
the error messages changed
self.initialize_options()
[833/1811] Building CXX object mlperf/CMak...r/__/_deps/mlperf-src/loadgen/loadgen.cc.
FAILED: mlperf/CMakeFiles/mlperf_loadgen.dir/__/_deps/mlperf-src/loadgen/loadgen.cc.o
/usr/local/opt/src/plaidml/.cenv/bin/ccache /usr/local/opt/src/plaidml/.cenv/bin/x86_64-apple-darwin13.4.0-clang++ -D_DEBUG -Dmlperf_loadgen_EXPORTS -isystem /usr/local/opt/src/plaidml/build-x86_64/Release/_deps/llvm-project-src/llvm/include -isystem /usr/local/opt/src/plaidml/build-x86_64/Release/_deps/llvm-project-build/include -isystem /usr/local/opt/src/plaidml/build-x86_64/Release/_deps/llvm-project-src/mlir/include -isystem /usr/local/opt/src/plaidml/build-x86_64/Release/_deps/llvm-project-build/tools/mlir/include -isystem /usr/local/opt/src/plaidml/vendor/mlir-hlo/include -isystem /usr/local/opt/src/plaidml/build-x86_64/Release/_deps/llvm-project-build/tools/mlir_hlo/include -isystem /usr/local/opt/src/plaidml/build-x86_64/Release/_deps/pybind11-src/include -isystem /usr/local/opt/src/plaidml/.cenv/include/python3.7m -D__STDC_FORMAT_MACROS -include cstdint -O3 -DNDEBUG -std=gnu++17 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -fPIC -fvisibility=hidden -UNDEBUG -U_DEBUG -MD -MT mlperf/CMakeFiles/mlperf_loadgen.dir/__/_deps/mlperf-src/loadgen/loadgen.cc.o -MF mlperf/CMakeFiles/mlperf_loadgen.dir/__/_deps/mlperf-src/loadgen/loadgen.cc.o.d -o mlperf/CMakeFiles/mlperf_loadgen.dir/__/_deps/mlperf-src/loadgen/loadgen.cc.o -c /usr/local/opt/src/plaidml/build-x86_64/Release/_deps/mlperf-src/loadgen/loadgen.cc
In file included from /usr/local/opt/src/plaidml/build-x86_64/Release/_deps/mlperf-src/loadgen/loadgen.cc:34:
In file included from /usr/local/opt/src/plaidml/build-x86_64/Release/_deps/mlperf-src/loadgen/issue_query_controller.h:21:
/usr/local/opt/src/plaidml/build-x86_64/Release/_deps/mlperf-src/loadgen/logging.h:716:26: error: invalid operands to binary expression ('basic_ostream<char>' and 'const std::vector<unsigned long>')
<< "\"value\": " << ArgValueTransform(value) << ", "
~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/opt/src/plaidml/build-x86_64/Release/_deps/mlperf-src/loadgen/logging.h:553:16: note: in instantiation of function template specialization 'mlperf::logging::AsyncLog::LogDetail<std::vector<unsigned long>>' requested here
async_log_.LogDetail(key, value, file_name, line_no);
^
/usr/local/opt/src/plaidml/build-x86_64/Release/_deps/mlperf-src/loadgen/loadgen.cc:958:5: note: in instantiation of function template specialization 'mlperf::logging::AsyncDetail::Log<std::vector<unsigned long>>' requested here
MLPERF_LOG(detail, "loaded_qsl_set", samples);
from plaidml.
Related Issues (20)
- plaidml-setup doesnt work anymore
- plaidml.exceptions.PlaidMLError: Could not find PlaidML configuration file: "experimental.json" HOT 1
- PlaidML Poor Performance on (My?) RX 6800 HOT 5
- Unable to run pmlc-opt output MLIR example via pmlc-jit HOT 2
- Printing memrefs HOT 1
- ModuleNotFoundError: No module named 'plaidml.bridge' HOT 1
- The fetching of dependencies should only be used as fallback
- neural network doesn't output the results HOT 3
- The Keras backend function 'local_conv2d' is not yet implemented in Plaid.
- build errors HOT 1
- how to fix "cannot import name 'Iterable' from 'collections' when running test code from main page HOT 3
- Feedback on build documentation HOT 2
- Capture affine.store op HOT 4
- Tile language vs EDSL HOT 10
- Not able to select GPU with plaidml-v1 HOT 6
- Support using system-installed llvm HOT 4
- cannot figure out how to load premade model in python
- Evaluate Profile-Guided Optimization (PGO) HOT 3
- Is the project still active? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from plaidml.