Re: [vpp-dev] clang-9

2020-06-01 Thread Lijian Zhang
> -Original Message- > From: Damjan Marion > Subject: Re: [vpp-dev] clang-9 > > > Dear Lijian, > > I don’t see how this matters if neither gcc 9.2+ or clang-10 are available in > ubuntu 18.04. > For custom builds users can simply say make CC=whatever-co

Re: [vpp-dev] clang-9

2020-06-01 Thread Damjan Marion via lists.fd.io
Dear Lijian, I don’t see how this matters if neither gcc 9.2+ or clang-10 are available in ubuntu 18.04. For custom builds users can simply say make CC=whatever-compiler-they-want … Also there is no N1 available in CSIT, so we cannot really judge about performance impact on the large number

Re: [vpp-dev] clang-9

2020-05-28 Thread Lijian Zhang
Hi Damjan, I got some feedback regarding switching default compiler from gcc to clang in VPP, from compiler team. " Neither LLVM nor GCC tune much for Neoverse N1, I think the difference is that GCC has better vectorization and a better optimized AArch64 backend. GCC10 has just been released

Re: [vpp-dev] clang-9

2020-05-12 Thread Damjan Marion via lists.fd.io
; <mailto:lijian.zh...@arm.com>> wrote: >> > >> > >> >> -Original Message- >> >> From: Damjan Marion mailto:dmar...@me.com>> >> >> Sent: 2020年5月12日 0:46 >> >> To: Lijian Zhang mailto:lijian.zh...@arm.com>> >>

Re: [vpp-dev] clang-9

2020-05-12 Thread Andreas Schultz
03:40, Lijian Zhang wrote: >> > >> > >> >> -Original Message- >> >> From: Damjan Marion >> >> Sent: 2020年5月12日 0:46 >> >> To: Lijian Zhang >> >> Cc: vpp-dev ; nd >> >> Subject: Re: [vpp-dev] cla

Re: [vpp-dev] clang-9

2020-05-12 Thread Damjan Marion via lists.fd.io
ijian Zhang > <mailto:lijian.zh...@arm.com>> wrote: > > > > > >> -Original Message- > >> From: Damjan Marion mailto:dmar...@me.com>> > >> Sent: 2020年5月12日 0:46 > >> To: Lijian Zhang mailto:lijian.zh...@arm.com>> > >&

Re: [vpp-dev] clang-9

2020-05-12 Thread Andreas Schultz
Am Di., 12. Mai 2020 um 10:00 Uhr schrieb Damjan Marion via lists.fd.io : > > > > > On 12 May 2020, at 03:40, Lijian Zhang wrote: > > > > > >> -Original Message- > >> From: Damjan Marion > >> Sent: 2020年5月12日 0:46 > >> To:

Re: [vpp-dev] clang-9

2020-05-12 Thread Damjan Marion via lists.fd.io
> On 12 May 2020, at 03:40, Lijian Zhang wrote: > > >> -Original Message- >> From: Damjan Marion >> Sent: 2020年5月12日 0:46 >> To: Lijian Zhang >> Cc: vpp-dev ; nd >> Subject: Re: [vpp-dev] clang-9 >> >> >> Hi L

Re: [vpp-dev] clang-9

2020-05-11 Thread Lijian Zhang
> -Original Message- > From: Damjan Marion > Sent: 2020年5月12日 0:46 > To: Lijian Zhang > Cc: vpp-dev ; nd > Subject: Re: [vpp-dev] clang-9 > > > Hi Lijian, > > If I got it right, neither gcc or clang available in ubuntu 18.04 LTS are > abl

Re: [vpp-dev] clang-9

2020-05-11 Thread Damjan Marion via lists.fd.io
this issue? > Thanks. > From: vpp-dev@lists.fd.io On Behalf Of Damjan Marion > via lists.fd.io > Sent: 2020年4月28日 22:14 > To: vpp-dev > Subject: [vpp-dev] clang-9 > > > Folks, > > As there is bug in gnu assembler which is shipping with ubuntu 18.04 we are >

Re: [vpp-dev] clang-9

2020-05-09 Thread Lijian Zhang
suggest on this issue? Thanks. From: vpp-dev@lists.fd.io On Behalf Of Damjan Marion via lists.fd.io Sent: 2020年4月28日 22:14 To: vpp-dev Subject: [vpp-dev] clang-9 Folks, As there is bug in gnu assembler which is shipping with ubuntu 18.04 we are not able to produce working binaries with avx512

Re: [vpp-dev] clang-9

2020-04-30 Thread Damjan Marion via lists.fd.io
Lock.__init__(self, SEMAPHORE, 1, 1, ctx=ctx) > 07:56:20 File "/usr/lib/python3.6/multiprocessing/synchronize.py", line 59, > in __init__ > 07:56:20 unlink_now) > 07:56:20 OSError: [Errno 28] No space left on device > ... > > Regards, > John > > Fr

Re: [vpp-dev] clang-9

2020-04-30 Thread John Lo (loj) via lists.fd.io
__init__ 07:56:20 unlink_now) 07:56:20 OSError: [Errno 28] No space left on device ... Regards, John From: vpp-dev@lists.fd.io On Behalf Of Damjan Marion via lists.fd.io Sent: Tuesday, April 28, 2020 10:14 AM To: vpp-dev Subject: [vpp-dev] clang-9 Folks, As there is bug in gnu assembl

Re: [vpp-dev] clang-9

2020-04-30 Thread Damjan Marion via lists.fd.io
lf Of Damjan Marion via lists.fd.io > <http://lists.fd.io/> > Sent: 2020年4月29日 4:33 > To: Dave Barach mailto:d...@barachs.net>> > Cc: Florin Coras mailto:fcoras.li...@gmail.com>>; > vpp-dev mailto:vpp-dev@lists.fd.io>> > Subject: Re: [vpp-dev] clang-9 >

Re: [vpp-dev] clang-9

2020-04-30 Thread Lijian Zhang
Barach Cc: Florin Coras ; vpp-dev Subject: Re: [vpp-dev] clang-9 Yes, (u8 *) in front of 1st argument will likely help…. — Damjan > On 28 Apr 2020, at 22:07, d...@barachs.net<mailto:d...@barachs.net> wrote: > > Kind of. Memset has no stated alignment requirements. Is there a form

Re: [vpp-dev] clang-9

2020-04-28 Thread Damjan Marion via lists.fd.io
e > > -Original Message- > From: Damjan Marion > Sent: Tuesday, April 28, 2020 3:50 PM > To: Florin Coras > Cc: vpp-dev ; Dave Barach (dbarach) > Subject: Re: [vpp-dev] clang-9 > > > Looks like you told compiler that svm_fifo_t will b

Re: [vpp-dev] clang-9

2020-04-28 Thread Damjan Marion via lists.fd.io
Looks like you told compiler that svm_fifo_t will be always cacheline aligned: typedef struct _svm_fifo { CLIB_CACHE_LINE_ALIGN_MARK (shared_first); but you increment pointer for something that it is not X*64: fmem += hdrs + rounded_data_size; So clang caught you cheating :) —

Re: [vpp-dev] clang-9

2020-04-28 Thread Florin Coras
Hi Damjan, Just tried the vcl tests and the debug version works just fine. The release images crash (at least in the test I’m looking at) doing: memset (f, 0, sizeof (*f)) >From gdb: (gdb) x/i $pc => 0x7f15fcd329f4 :movaps %xmm0,0x1f0(%rdi,%rbp,1) (gdb) i r rdi rdi

[vpp-dev] clang-9

2020-04-28 Thread Damjan Marion via lists.fd.io
Folks, As there is bug in gnu assembler which is shipping with ubuntu 18.04 we are not able to produce working binaries with avx512 instruction set. Because of that, I had to change default to avx2. reported bug[1], but it is ignored for a year. As alternative[2], I wanted to consider using