heipei / engine-cuda

engine-cuda is a CUDA/OpenCL engine for the popular OpenSSL cryptography framework.
GNU General Public License v3.0
73 stars 27 forks source link

Invalid engine "cudamrg" #2

Open Gh0s7 opened 11 years ago

Gh0s7 commented 11 years ago

Here I am again :(

invalid engine "cudamrg"
139868566857424:error:25066067:DSO support routines:DLFCN_LOAD:could not load the shared library:dso_dlfcn.c:185:filename(/usr/lib/x86_64-linux-gnu/openssl-1.0.0/engines/libcudamrg.so): /usr/lib/x86_64-linux-gnu/openssl-1.0.0/engines/libcudamrg.so: undefined symbol: cudaGetDeviceCount
139868566857424:error:25070067:DSO support routines:DSO_load:could not load the shared library:dso_lib.c:244:
139868566857424:error:260B6084:engine routines:DYNAMIC_LOAD:dso not found:eng_dyn.c:450:
139868566857424:error:2606A074:engine routines:ENGINE_by_id:no such engine:eng_list.c:417:id=cudamrg
139868566857424:error:25066067:DSO support routines:DLFCN_LOAD:could not load the shared library:dso_dlfcn.c:185:filename(libcudamrg.so): libcudamrg.so: cannot open shared object file: No such file or directory
139868566857424:error:25070067:DSO support routines:DSO_load:could not load the shared library:dso_lib.c:244:
139868566857424:error:260B6084:engine routines:DYNAMIC_LOAD:dso not found:eng_dyn.c:450:

when I run

optirun ./test-speed.sh

(optirun is needed as I'm using Bumblebee/nVidia Optimus)

heipei commented 11 years ago

Did you install engine-cuda in the right directory? Are you sure that the script you're invoking is indeed calling the correct version of OpenSSL? I assume that by now you have two instances of openssl on your system, one in /usr somewhere and the other one in /opt

raif7 commented 10 years ago

Hi, unless I'm missing something, what is the recommended version of openssl and cuda-toolkit to develop this gpu engine? Thanks

raif7 commented 10 years ago

Hi Gh0s7, Your main problem I guess is this " ....undefined symbol: cudaGetDeviceCount" I too had that problem but I was able to solve it by adding the option "--no-as-needed" as in "-Wl,--no-as-needed". Please refer to this site for further info : "http://stackoverflow.com/questions/14329967/missing-a-library-in-ldd-after-using-gcc-l"

nullkuhl commented 9 years ago

raif7 where to add that ?

abu-naser commented 5 years ago

Hi, @nullkuhl, please add it in the makefile. Thanks.

abu-naser commented 5 years ago

Hi, @Gh0s7 Please check https://github.com/heipei/engine-cuda/issues/3#issuecomment-459799187 Hope this will help. Thanks!