Intel® Integrated Performance Primitives
Deliberate problems developing high-performance vision, signal, security, and storage applications.
Announcements
FPGA community forums and blogs have moved to the Altera Community. Existing Intel Community members can sign in with their current credentials.
6818 Discussions

IPP not work on FreeBSD 7.2-RELEASE linux_base-fc4

nagual
Beginner
587 Views

Hi

#!/usr/local/bin/perl -w
use strict;
use vars qw($VERSION @ISA @EXPORT @EXPORT_OK);
require Exporter;
require DynaLoader;
require AutoLoader;
@ISA = qw(Exporter DynaLoader);

use Inline (C => Config =>
# DIRECTORY => './inline_dir',
# LIBS => '-lfoo',
# INC => '-I/foo/include',
# PREFIX => 'XXX_',
#DISABLE => 'AUTONAME',
FORCE_BUILD => 0,
CLEAN_AFTER_BUILD => 0,
WARNINGS => 1,

LIBS => '-L/usr/work/fastcgi/ -L/usr/compat/linux/lib -libdl -libc -libm',
LIBS => '-L/usr/work/fastcgi/',
LIBS => '-L/usr/compat/linux/lib/',
MYEXTLIB => q[/usr/work/fastcgi/libippcore.so.6.0 /usr/work/fastcgi/libiomp5.so /usr/compat/linux/lib/libc-2.3.6.so /usr/compat/linux/lib/libdl-2.3.6.so /usr/compat/linux/lib/libm-2.3.6.so],
);
use Inline C => <<'END';

int poisk ( char* x, int m , char* y, int n) {
int (*p)(const Ipp8u* pSrc, int len, const Ipp8u* pFind, int lenFind, int *pIndex)=NULL;
Ipp8u* pSrc; int len; Ipp8u* pFind; int lenFind; int *pIndex;
void *handle;
handle= dlopen("/usr/work/fastcgi/libippchv8.so.6.0");
if (!handle) {
fputs (dlerror(), stderr);
exit(1);
}
p=dlsym( handle ,"ippsFind_16u");
{
char *err=dlerror();
if(err!=NULL) {
fputs(err,stderr);
exit(1);
}
}

char a[] = "xyzwtwretwertwertwertwertwrtw";
char aa[] = "xyz";
int t = sizeof(a);
int tt = sizeof(aa);
pSrc=a;
len=t;
pFind=aa;
lenFind=tt;
pIndex=-1;
(*p)(pSrc ,len, pFind, lenFind , pIndex);

//return pIndex;

}

# ls -l
total 2980
-rw-r--r-- 1 root max 120 Jun 15 01:14 .packlist
-r--r--r-- 1 root max 0 Jun 15 00:58 find051_pl.bs
-rw-r--r-- 1 root max 563 Jun 15 01:14 find051_pl.inl
-r-xr-xr-x 1 root max 8131 Jun 15 01:14 find051_pl.so
-rwxr-xr-x 1 root wheel 121236 Jun 14 13:56 ld-linux.so.2
-rwxr-xr-x 1 root wheel 1434044 Jun 14 13:55 libc.so.6
-rwxr-xr-x 1 root max 14424 Jun 14 20:07 libdl.so.2
-rwxr-xr-x 1 root max 412693 Jun 14 20:41 libiomp5.so
-rwxr-xr-x 1 root max 598070 Jun 14 14:12 libippchv8.so.6.0
-rwxr-xr-x 1 root max 50345 Jun 14 20:02 libippcore.so.6.0
-rwxr-xr-x 1 root wheel 203176 Jun 14 13:55 libm.so.6
-rwxr-xr-x 1 root wheel 95308 Jun 14 13:55 libpthread.so.0

libippcore.so.6.0 => /usr/work/fastcgi/_Inline/lib/auto/find051_pl//libippcore.so.6.0 (0x282db000)
libdl.so.2 => /usr/work/fastcgi/_Inline/lib/auto/find051_pl//libdl.so.2 (0x282e5000)
libiomp5.so => /usr/work/fastcgi/_Inline/lib/auto/find051_pl//libiomp5.so (0x28b8d000)
libm.so.6 => /usr/work/fastcgi/_Inline/lib/auto/find051_pl//libm.so.6 (0x2db00000)
libc.so.6 => /usr/local/lib/compat/libc.so.6 (0x2db26000)
ld-linux.so.2 (0x2dc0d000)
libpthread.so.0 => /usr/work/fastcgi/_Inline/lib/auto/find051_pl//libpthread.so.0 (0x282e9000)

End stop ...

0 Kudos
1 Reply
Vladimir_Dudnik
Employee
587 Views
Youshould be able touse IPP not threaded static libraries on FreeBSD systems.

Vladimir
0 Kudos
Reply