-
Notifications
You must be signed in to change notification settings - Fork 158
FHE Examples are failing - Illegal instruction (core dumped) #149
Comments
Thank you very much for helping us to improve the quality of our software. The FHE Toolkit develiopment team want to sincerely thank you for submitting your first issue and joining our technical community! We will get started on your issue immediately. |
Thank you @vishnudevk for submitting this bug report. It looks like the way we compile HElib to create the fhe-toolkit-linux docker image generates an assembly instruction which is invalid on your machine. Can you please post the output of |
|
OK, it seems that your CPU doesn't have avx2 and fma; and I believe we build the toolkit on a machine which does have them, and the build produces assembly which uses these features for improved performance (@boland25 - do you know?). @vishnudevk I suggest you should try building the FHE toolkit images yourself; see instructions in https://github.com/IBM/fhe-toolkit-linux/blob/master/GettingStarted.Advanced.md . |
@dubek that is probably the case, but I have to look into deeper on how its setup. Maybe we can meet internally about this next week after I've had some time to look at it? |
also @vishnudevk curious if you tried to build anything yourself from your machine? and if so how did it go? |
I am getting the following error when tried to build the ubuntu based image myself. (sudo ./BuildDockerImage.sh ubuntu)
|
ooh ok, I think this is related to our recent permissions fix. @deanthomasson do you have time to look into this at all? |
@vishnudevk can you share with us what the user id was when you called this? You said that you used sudo but we are curious to see if it was using sudo's user id, or the current user's id. We might have to put a check in the script to look for this , thanks! |
@vishnudevk can you try again without using sudo and see if the problem still persists, you shouldn't need to use sudo with our build script. we are able to re-produce it on our side |
My user id is 1000.
|
@boland25 I could make it work by fixing the issue of the docker needing sudo to run. |
@vishnudevk ah interesting, glad you were able to fix it! Thanks for pointing out this issue to us, we're going to add a change to the script, so your feed back is very helpful |
Describe the bug
Illegal instruction (core dumped) error is coming when I am trying to make and run any included examples.
hePtr = HelibContext::create(HELIB_NOT_SECURE_CKKS_512_FAST);
line is failing with that error.To Reproduce
Steps to reproduce the behaviour:
cmake . && make
./CKKS_credit_card_fraud
*** Starting inference demo ***
Initializing HElib . . .
Illegal instruction (core dumped)
Upon checking
hePtr = HelibContext::create(HELIB_NOT_SECURE_CKKS_512_FAST);
line is failing with that error.
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
Environment (please complete the following information):
Host Info (The machine hosting the FHE Toolkit Docker container), please provide the output of running the following commands in a termina window:
uname -
[vishnudev@arch ~]$ uname -a
Linux arch 5.11.14-arch1-1 hello! when will the toolkit be released? #1 SMP PREEMPT Wed, 14 Apr 2021 12:06:34 +0000 x86_64 GNU/Linux
ulimit -a
[vishnudev@arch ~]$ ulimit -a
real-time non-blocking time (microseconds, -R) unlimited
core file size (blocks, -c) unlimited
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 31385
max locked memory (kbytes, -l) 64
max memory size (kbytes, -m) unlimited
open files (-n) 1024
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) 31385
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited
Docker version (run
docker -v
in Terminal):Toolkit platform (Fedora, CentOS, Ubuntu):
Additional context
I ran
./RunToolkit.sh -p ubuntu
command with sudo because it was failing with some permission issues when I ran without admin privilege.The text was updated successfully, but these errors were encountered: