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

incompatible intel opencl 2012 library #1

Closed
blshkv opened this issue Nov 18, 2012 · 3 comments
Closed

incompatible intel opencl 2012 library #1

blshkv opened this issue Nov 18, 2012 · 3 comments
Assignees

Comments

@blshkv
Copy link

blshkv commented Nov 18, 2012

I'm unable to build wisecracker with intel-ocl-sdk 2012 (2.0.31360).
(http://registrationcenter.intel.com/irc_nas/2563/intel_sdk_for_ocl_applications_2012_x64.tgz)

Here is the error message:

cd /var/tmp/portage/app-crypt/wisecracker-1.0/work/wisecracker-1.0_build/src && /usr/bin/cmake -E cmake_link_script CMakeFiles/wisecracker.dir/link.txt --verbose=1
/usr/bin/x86_64-pc-linux-gnu-g++ -fPIC -march=core2 -mtune=generic -O2 -pipe -Wall -fPIC -pedantic -Wno-variadic-macros -m32 -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -shared -Wl,-soname,libwisecracker.so -o libwisecracker.so CMakeFiles/wisecracker.dir/executor.c.o CMakeFiles/wisecracker.dir/mpi.c.o CMakeFiles/wisecracker.dir/opencl.c.o CMakeFiles/wisecracker.dir/wrapper.cpp.o CMakeFiles/wisecracker.dir/utils.c.o -L/usr/common/lib -lOpenCL -lpthread -Wl,-rpath,/usr/common/lib:
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.4/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/4.5.4/../../../libOpenCL.so when searching for -lOpenCL
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.4/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/libOpenCL.so when searching for -lOpenCL
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.4/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lOpenC

Any idea what's the problem?

@vikasnkumar
Copy link
Owner

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi
I had no problem building with the 2.0.31360 Intel OpenCL SDK on a
64-bit Debian 6.0 distribution. Here is how I did it.

Let's say you have installed the Intel OpenCL SDK in a directory called
/var/tmp/myintelsdk/

Here you have to note that this directory needs to have the include and
lib64 subdirectories accordingly. Hence the directories
/var/tmp/myintelsdk/include needs to exist.

$ export OPENCL_ROOT=/var/tmp/myintelsdk/
$ make rebuild

This should do it.

If you have /var/tmp/myintelsdk/usr/include present then your
OPENCL_ROOT will be
$ export OPENCL_ROOT=/var/tmp/myintelsdk/usr

If you have installed OpenCL in /usr/local then your OPENCL_ROOT will be
$ export OPENCL_ROOT=/usr/local

Hope this helps. Feel free to contact me if you continue to have issues.

Regards
Vikas.

On 11/17/2012 11:40 PM, blshkv wrote:

I'm unable to build wisecracker with intel-ocl-sdk 2012 (2.0.31360).
(http://registrationcenter.intel.com/irc_nas/2563/intel_sdk_for_ocl_applications_2012_x64.tgz)

Here is the error message:

cd
/var/tmp/portage/app-crypt/wisecracker-1.0/work/wisecracker-1.0_build/src &&
/usr/bin/cmake -E cmake_link_script CMakeFiles/wisecracker.dir/link.txt
--verbose=1
/usr/bin/x86_64-pc-linux-gnu-g++ -fPIC -march=core2 -mtune=generic -O2
-pipe -Wall -fPIC -pedantic -Wno-variadic-macros -m32 -Wl,-O1
-Wl,--as-needed -Wl,--hash-style=gnu -shared
-Wl,-soname,libwisecracker.so -o libwisecracker.so
CMakeFiles/wisecracker.dir/executor.c.o
CMakeFiles/wisecracker.dir/mpi.c.o CMakeFiles/wisecracker.dir/opencl.c.o
CMakeFiles/wisecracker.dir/wrapper.cpp.o
CMakeFiles/wisecracker.dir/utils.c.o -L/usr/common/lib -lOpenCL
-lpthread -Wl,-rpath,/usr/common/lib:
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.4/../../../../x86_64-pc-linux-gnu/bin/ld:
skipping incompatible
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.4/../../../libOpenCL.so when
searching for -lOpenCL
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.4/../../../../x86_64-pc-linux-gnu/bin/ld:
skipping incompatible /usr/lib/libOpenCL.so when searching for -lOpenCL
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.4/../../../../x86_64-pc-linux-gnu/bin/ld:
cannot find -lOpenC

Any idea what's the problem?


Reply to this email directly or view it on GitHub
#1.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAlCo87oACgkQeji51bDsSjsUBwCgwDjVAOI4bwi0RrmkCp+Pgyb0
2y4An3T9sJSLlPP3GJ4dr4A0jH9hQ69b
=jrPU
-----END PGP SIGNATURE-----

@ghost ghost assigned vikasnkumar Nov 18, 2012
@blshkv
Copy link
Author

blshkv commented Nov 18, 2012

ok, the problem was on my side with an ebuild (I compile under gentoo). I managed to fix it.
Thanks for the quick reply anyway

@blshkv blshkv closed this as completed Nov 18, 2012
@vikasnkumar
Copy link
Owner

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 11/18/2012 10:43 AM, blshkv wrote:

How can I tell to use the m64 option?..

You can use ARCH=x86_64 from the command line and that can force it.

$ make ARCH=x86_64

  • --Vikas
    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.4.10 (GNU/Linux)
    Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAlCpDCEACgkQeji51bDsSjtGQgCg3y9ruJM3SyFMkXGwoWU4U1J4
IiMAoIda5/lJLfUPRO6X7KFGOY2qJdph
=fExB
-----END PGP SIGNATURE-----

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

2 participants