Giter Site home page Giter Site logo

Comments (7)

alanzhai219 avatar alanzhai219 commented on August 16, 2024

e7176cf causes such error. inline code cant work properly in some CPU.

from ppl.nn.

Alcanderian avatar Alcanderian commented on August 16, 2024

You can append -DPPL_USE_X86_AVX512=OFF to the cmake command-line to separate the AVX512 codes.
But in this case, the error is not about the CPU but the compiler.
Can you tell us about your environment?
Including OS, compiler and the command-line?

from ppl.nn.

alanzhai219 avatar alanzhai219 commented on August 16, 2024

You can append -DPPL_USE_X86_AVX512=OFF to the cmake command-line to separate the AVX512 codes.

PPL_USE_X86_AVX512 work for me.

But in this case, the error is not about the CPU but the compiler.
Can you tell us about your environment?
Including OS, compiler and the command-line?

os : ubuntu20.04
gcc: 9.3.0
cmd: ./build.sh -DHPCC_USE_X86_64=ON

from ppl.nn.

Alcanderian avatar Alcanderian commented on August 16, 2024

os : ubuntu20.04
gcc: 9.3.0
cmd: ./build.sh -DHPCC_USE_X86_64=ON

I cannot reproduce the compile error with a similar environment.
I have built the lastest master successfully with:
CPU: i7-10700K
OS: ubuntu 20.04.2
gcc: 9.3.0
cmd: ./build.sh -DHPCC_USE_X86_64=ON

Can you show the entire error message by GCC?

from ppl.nn.

alanzhai219 avatar alanzhai219 commented on August 16, 2024

os : ubuntu20.04
gcc: 9.3.0
cmd: ./build.sh -DHPCC_USE_X86_64=ON

I cannot reproduce the compile error with a similar environment.
I have built the lastest master successfully with:
CPU: i7-10700K
OS: ubuntu 20.04.2
gcc: 9.3.0
cmd: ./build.sh -DHPCC_USE_X86_64=ON

Can you show the entire error message by GCC?

Hope it is not late to say sorry. I think my description above may guides wrong direction.
In brief, try to replace 'Release' with 'Debug' in build.sh and then rebuild your master.

/home/workspace/ppl.nn/src/ppl/nn/engines/x86/impls/src/ppl/kernel/x86/fp32/gemm/fma/gemm_kernel_fp32_fma.cpp: In function ‘void ppl::kernel::x86::gemm_fp32_fma_kernel_core(int64_t*) [with long int u_m = 1; long int u_n = 8]’:
/home/workspace/ppl.nn/src/ppl/nn/engines/x86/impls/src/ppl/kernel/x86/fp32/gemm/fma/gemm_kernel_fp32_fma.cpp:321:6: warning: asm operand 4 probably doesn’t match constraints
  321 |     );
      |      ^
/home/workspace/ppl.nn/src/ppl/nn/engines/x86/impls/src/ppl/kernel/x86/fp32/gemm/fma/gemm_kernel_fp32_fma.cpp:321:6: error: impossible constraint in ‘asm’
/home/workspace/ppl.nn/src/ppl/nn/engines/x86/impls/src/ppl/kernel/x86/fp32/gemm/fma/gemm_kernel_fp32_fma.cpp: In function ‘void ppl::kernel::x86::gemm_fp32_fma_kernel_core(int64_t*) [with long int u_m = 2; long int u_n = 8]’:
/home/workspace/ppl.nn/src/ppl/nn/engines/x86/impls/src/ppl/kernel/x86/fp32/gemm/fma/gemm_kernel_fp32_fma.cpp:321:6: warning: asm operand 4 probably doesn’t match constraints
  321 |     );

from ppl.nn.

Alcanderian avatar Alcanderian commented on August 16, 2024

os : ubuntu20.04
gcc: 9.3.0
cmd: ./build.sh -DHPCC_USE_X86_64=ON

I cannot reproduce the compile error with a similar environment.
I have built the lastest master successfully with:
CPU: i7-10700K
OS: ubuntu 20.04.2
gcc: 9.3.0
cmd: ./build.sh -DHPCC_USE_X86_64=ON
Can you show the entire error message by GCC?

Hope it is not late to say sorry. I think my description above may guides wrong direction.
In brief, try to replace 'Release' with 'Debug' in build.sh and then rebuild your master.

/home/workspace/ppl.nn/src/ppl/nn/engines/x86/impls/src/ppl/kernel/x86/fp32/gemm/fma/gemm_kernel_fp32_fma.cpp: In function ‘void ppl::kernel::x86::gemm_fp32_fma_kernel_core(int64_t*) [with long int u_m = 1; long int u_n = 8]’:
/home/workspace/ppl.nn/src/ppl/nn/engines/x86/impls/src/ppl/kernel/x86/fp32/gemm/fma/gemm_kernel_fp32_fma.cpp:321:6: warning: asm operand 4 probably doesn’t match constraints
  321 |     );
      |      ^
/home/workspace/ppl.nn/src/ppl/nn/engines/x86/impls/src/ppl/kernel/x86/fp32/gemm/fma/gemm_kernel_fp32_fma.cpp:321:6: error: impossible constraint in ‘asm’
/home/workspace/ppl.nn/src/ppl/nn/engines/x86/impls/src/ppl/kernel/x86/fp32/gemm/fma/gemm_kernel_fp32_fma.cpp: In function ‘void ppl::kernel::x86::gemm_fp32_fma_kernel_core(int64_t*) [with long int u_m = 2; long int u_n = 8]’:
/home/workspace/ppl.nn/src/ppl/nn/engines/x86/impls/src/ppl/kernel/x86/fp32/gemm/fma/gemm_kernel_fp32_fma.cpp:321:6: warning: asm operand 4 probably doesn’t match constraints
  321 |     );

Hello, I fix the compile issue with bulid type Debug in #109 .
You can try my forked repo first or wait for the manager to accept the merge request.

from ppl.nn.

alanzhai219 avatar alanzhai219 commented on August 16, 2024

LGTM

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.