Giter Site home page Giter Site logo

Comments (4)

ouonline avatar ouonline commented on July 17, 2024

refer to the docker config: https://github.com/openppl-public/ppl.nn/tree/master/docker or the building instruction https://github.com/openppl-public/ppl.nn/blob/master/docs/en/building-from-source.md for more details.

from ppl.nn.

NingNanXin avatar NingNanXin commented on July 17, 2024

Thanks for @ouonline replay, new dockerfile is as follows. Successfully compile!

My dockerfile:

FROM homebrew/ubuntu20.04:latest

USER root
WORKDIR /root

SHELL [ "/bin/bash", "-c" ]

RUN apt-get -y update && \
    apt-get install -y cmake && \
    apt-get install -y python3-pip && \
    apt-get install -y python3-dev && \
    apt-get install -y expect && \
    apt-get install -y build-essential

COPY requirements.txt requirements.txt
RUN pip install --no-cache-dir -r requirements.txt && rm requirements.txt

## compile ppl
COPY ppl.nn/ ppl.nn/
RUN cd ppl.nn && \
    chmod 777 ./build.sh && \
    ./build.sh -DHPCC_USE_X86_64=ON -DHPCC_USE_OPENMP=ON -DPPLNN_ENABLE_PYTHON_API=ON -DPYTHON3_INCLUDE_DIRS=/usr/include/python3.8/ && \
    cp -r python/package /tmp/pyppl-package && \
    cp -r pplnn-build/install/lib/pyppl/* /tmp/pyppl-package/pyppl && \
    cd /tmp/pyppl-package && \
    pip install . && \
    cd .. && \
    cd .. && \
    rm -r ppl.nn/

ENV LC_ALL=C.UTF-8
ENV LANG=C.UTF-8

CMD [ "/bin/bash" ]

from ppl.nn.

ouonline avatar ouonline commented on July 17, 2024

./build.sh -DHPCC_USE_X86_64=ON -DHPCC_USE_OPENMP=ON -DPPLNN_ENABLE_PYTHON_API=ON -DPYTHON3_INCLUDE_DIRS=/usr/lib/python3.8/site-packages && \

change the PYTHON3_INCLUDE_DIRS to /usr/include/python3.8/ instead of using CPLUS_INCLUDE_PATH.

from ppl.nn.

NingNanXin avatar NingNanXin commented on July 17, 2024

Thanks!

from ppl.nn.

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.