sleef icon indicating copy to clipboard operation
sleef copied to clipboard

[GNUABI] Create SVML-like API

Open gdonval opened this issue 5 years ago • 1 comments

Currently, sleefgnuabi follows... GNU ABI, also used by libmvec.

Problem

Problems could arise if linking is not done perfectly correctly (presence, in right position, of -lsleefgnuabi in the linker commands): any incorrect use leads to a silent fallback to libmvec. Since the ABI is identical, checking symbols is tricky.

Proposed solution

Provide a SVML-like ABI.

By using -ffast-math -ftree-vectorize -mveclibabi=svml, one can guarantee that sleef is going to be used as libmvec does not provide a SVML ABI. If linking is incorrect, it is going to fail. In addition, linking order would matter less as libmvec-provided symbols and sleefsvmlabi-provided symbols would be different.

gdonval avatar May 30 '19 11:05 gdonval

@fpetrogalli Do you have any comment on this?

shibatch avatar May 30 '19 11:05 shibatch