Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do I build it into libic.so to use with java ? #5

Closed
kk00ss opened this issue Dec 1, 2015 · 2 comments
Closed

How do I build it into libic.so to use with java ? #5

kk00ss opened this issue Dec 1, 2015 · 2 comments

Comments

@kk00ss
Copy link

kk00ss commented Dec 1, 2015

Could you please suggest

@kk00ss kk00ss closed this as completed Dec 7, 2015
@benalexau
Copy link

For the benefit of others who find this ticket, follow the instructions in the java/jicbench.java file.

You may need to modify the gcc command a little. I ended up with gcc -O3 -march=native -fstrict-aliasing -m64 -shared -fPIC -Ijava -I/usr/lib/jvm/java-8-openjdk/include -I/usr/lib/jvm/java-8-openjdk/include/linux bitpack.c bitunpack.c bitpackv.c bitunpackv.c vp4dc.c vp4dd.c vsimple.c vint.c bitutil.c jic.c -o libic.so.

Also note step 5 has a typo, you need java jicbench (add the j before icbench). I also needed to edit jic.java to use a hard-coded path to libic.so (the typical system library location and -Djava.library.path techniques did not work, but I didn't dig any further given I'm only benchmarking this library at present).

@powturbo
Copy link
Owner

powturbo commented Jan 5, 2016

Thanks for your contribution.
jicbench is only a small demo to show the java functionality of TurboPFor.
I'll try to improve it in the next update.
For a complete benchmark, use the c "icbench" instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants