Code Monkey home page Code Monkey logo

Comments (2)

ifeanyipossibilities avatar ifeanyipossibilities commented on July 22, 2024
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.

ifeanyipossibilities avatar ifeanyipossibilities commented on July 22, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.