Форум русскоязычного сообщества Ubuntu


Увидели сообщение с непонятной ссылкой, спам, непристойность или оскорбление?
Воспользуйтесь ссылкой «Сообщить модератору» рядом с сообщением!

Автор Тема: Pyrit не видит GPU (не устанавливается cpyrit-opencl)  (Прочитано 2361 раз)

0 Пользователей и 1 Гость просматривают эту тему.

Оффлайн Olengoda

  • Автор темы
  • Новичок
  • *
  • Сообщений: 3
    • Просмотр профиля
Ubuntu 14.04 LTS. Ноутбук Dell inspiron 5520, с Intel core i7, AMD Radeon HD 7600M.
Мои действия:
1) Поставил AMD Radeon Software Crimson Edition (получилось только по инструкции отсюда: http://kubuntu.ru/node/13476) Команды, которые я вводил:
(Нажмите, чтобы показать/скрыть)
olengoda@olengoda-PC:~$ fglrxinfo
display: :0  screen: 0
OpenGL vendor string: Advanced Micro Devices, Inc.
OpenGL renderer string: AMD Radeon HD 7600M Series
OpenGL version string: 4.5.13416 Compatibility Profile Context 15.302
2) Установил AMD APP SDK
tar -xvf AMD-APP-SDK-linux-v2.9-1.599.381-GA-x64.tar
./AMD-APP-SDK-v2.9-1.599.381-GA-linux64.sh
добавил в конец файла /root/.bashrc эти строки:
# AMD APP SDK
export AMDAPPSDKROOT=/opt/AMDAPP
export AMDAPPSDKSAMPLESROOT=/opt/AMDAPP/
export LD_LIBRARY_PATH=${AMDAPPSDKROOT}lib/x86_64:${LD_LIBRARY_PATH}
export ATISTREAMSDKROOT=$AMDAPPSDKROOT
olengoda@olengoda-PC:~$ clinfo
Number of platforms: 1
  Platform Profile: FULL_PROFILE
  Platform Version: OpenCL 2.0 AMD-APP (1912.5)
  Platform Name: AMD Accelerated Parallel Processing
  Platform Vendor: Advanced Micro Devices, Inc.
  Platform Extensions: cl_khr_icd cl_amd_event_callback cl_amd_offline_devices


  Platform Name: AMD Accelerated Parallel Processing
Number of devices: 1
  Device Type: CL_DEVICE_TYPE_CPU
  Vendor ID: 1002h
  Board name:
  Max compute units: 8
  Max work items dimensions: 3
    Max work items[0]: 1024
    Max work items[1]: 1024
    Max work items[2]: 1024
  Max work group size: 1024
  Preferred vector width char: 16
  Preferred vector width short: 8
  Preferred vector width int: 4
  Preferred vector width long: 2
  Preferred vector width float: 8
  Preferred vector width double: 4
  Native vector width char: 16
  Native vector width short: 8
  Native vector width int: 4
  Native vector width long: 2
  Native vector width float: 8
  Native vector width double: 4
  Max clock frequency: 1471Mhz
  Address bits: 64
  Max memory allocation: 2147483648
  Image support: Yes
  Max number of images read arguments: 128
  Max number of images write arguments: 64
  Max image 2D width: 8192
  Max image 2D height: 8192
  Max image 3D width: 2048
  Max image 3D height: 2048
  Max image 3D depth: 2048
  Max samplers within kernel: 16
  Max size of kernel argument: 4096
  Alignment (bits) of base address: 1024
  Minimum alignment (bytes) for any datatype: 128
  Single precision floating point capability
    Denorms: Yes
    Quiet NaNs: Yes
    Round to nearest even: Yes
    Round to zero: Yes
    Round to +ve and infinity: Yes
    IEEE754-2008 fused multiply-add: Yes
  Cache type: Read/Write
  Cache line size: 64
  Cache size: 32768
  Global memory size: 8269094912
  Constant buffer size: 65536
  Max number of constant args: 8
  Local memory type: Global
  Local memory size: 32768
  Kernel Preferred work group size multiple: 1
  Error correction support: 0
  Unified memory for Host and Device: 1
  Profiling timer resolution: 1
  Device endianess: Little
  Available: Yes
  Compiler available: Yes
  Execution capabilities:
    Execute OpenCL kernels: Yes
    Execute native function: Yes
  Queue properties:
    Out-of-Order: No
    Profiling : Yes
  Platform ID: 0x00007f196681ea18
  Name: Intel(R) Core(TM) i7-3612QM CPU @ 2.10GHz
  Vendor: GenuineIntel
  Device OpenCL C version: OpenCL C 1.2
  Driver version: 1912.5 (sse2,avx)
  Profile: FULL_PROFILE
  Version: OpenCL 1.2 AMD-APP (1912.5)
  Extensions: cl_khr_fp64 cl_amd_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_3d_image_writes cl_khr_byte_addressable_store cl_khr_gl_sharing cl_ext_device_fission cl_amd_device_attribute_query cl_amd_vec3 cl_amd_printf cl_amd_media_ops cl_amd_media_ops2 cl_amd_popcnt cl_khr_spir cl_khr_gl_event
3) Скачал с сайта https://code.google.com/archive/p/pyrit/downloads pyrit-0.4.0.tar.gz и cpyrit-opencl-0.4.0.tar.gz, разархивировал их. Установил pyrit:
cd pyrit-0.4.0
./setup.py build install
4) Пытался ставить cpyrit-opencl:
tar xvf cpyrit-opencl-0.4.0.tar.gz
cd cpyrit-opencl-0.4.0
Поменял в файле setup.py строки:
VERSION = ‘0.4.0’   на   VERSION = ‘0.4.1-dev’
OPENCL_INC_DIRS = []   на   OPENCL_INC_DIRS = [“/opt/AMDAPPSDK-2.9-1/include“]
OPENCL_LIB_DIRS = []   на   OPENCL_INC_DIRS = [“/opt/AMDAPPSDK-2.9-1/lib/x86_64“]
./setup.py build installThe headers required to build the OpenCL-kernel were not found. Trying to continue anyway...
running build
running build_ext
Building modules...
running install
running install_lib
running install_egg_info
Removing /usr/local/lib/python2.7/dist-packages/cpyrit_opencl-0.4.1_dev.egg-info
Writing /usr/local/lib/python2.7/dist-packages/cpyrit_opencl-0.4.1_dev.egg-info
Но Pyrit всё равно не видит видеокарту:
olengoda@olengoda-PC:~$ pyrit list_cores
/usr/local/lib/python2.7/dist-packages/cpyrit/cpyrit.py:63: UserWarning: WARNING: Version mismatch between <module 'cpyrit._cpyrit_cpu' from '/usr/local/lib/python2.7/dist-packages/cpyrit/_cpyrit_cpu.so'> ('0.4.0') and <module 'cpyrit._cpyrit_opencl' from '/usr/local/lib/python2.7/dist-packages/cpyrit/_cpyrit_opencl.so'> ('0.4.1-dev')

  "('%s')\n" % (_cpyrit_cpu, _cpyrit_cpu.VERSION, mod, ver))
Pyrit 0.4.0 (C) 2008-2011 Lukas Lueg http://pyrit.googlecode.com
This code is distributed under the GNU General Public License v3+

The following cores seem available...
#1:  'CPU-Core (SSE2)'
#2:  'CPU-Core (SSE2)'
#3:  'CPU-Core (SSE2)'
#4:  'CPU-Core (SSE2)'
#5:  'CPU-Core (SSE2)'
#6:  'CPU-Core (SSE2)'
#7:  'CPU-Core (SSE2)'
#8:  'CPU-Core (SSE2)'
Вот содержимое моего файла setup.py от cpyrit-opencl-0.4.0:
(Нажмите, чтобы показать/скрыть)
« Последнее редактирование: 10 Февраля 2017, 19:48:42 от Olengoda »

Оффлайн AlexBKost

  • Старожил
  • *
  • Сообщений: 3790
  • Kubuntu 12.04, 16.04, 18.04, 20.04, 22.04, 24.04
    • Просмотр профиля
Re: Pyrit не видит GPU (не устанавливается cpyrit-opencl)
« Ответ #1 : 10 Февраля 2017, 21:32:21 »
Olengoda, мне, конечно, приятно, что кто-то еще пользуется инструкцией, к которой, как говорил Юрий Деточкин, я тоже руку приложил (С). Только в вашем случае, скорее всего, имеются некоторые неточности (одну я уже увидел при беглом прочтении) и несоответствия. Чтобы мне определиться окончательно предлагаю вам дополнительно показать еще два выхлопа:
uname -a
и X -version
Я странен, а не странен кто ж? (С)

Оффлайн Olengoda

  • Автор темы
  • Новичок
  • *
  • Сообщений: 3
    • Просмотр профиля
Re: Pyrit не видит GPU (не устанавливается cpyrit-opencl)
« Ответ #2 : 10 Февраля 2017, 21:49:13 »
olengoda@olengoda-PC:~$ uname -a
Linux olengoda-PC 4.4.0-31-generic #50~14.04.1-Ubuntu SMP Wed Jul 13 01:07:32 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
olengoda@olengoda-PC:~$ X -version

X.Org X Server 1.15.1
Release Date: 2014-04-13
X Protocol Version 11, Revision 0
Build Operating System: Linux 3.2.0-76-generic x86_64 Ubuntu
Current Operating System: Linux olengoda-PC 4.4.0-31-generic #50~14.04.1-Ubuntu SMP Wed Jul 13 01:07:32 UTC 2016 x86_64
Kernel command line: BOOT_IMAGE=/boot/vmlinuz-4.4.0-31-generic root=UUID=9f957bea-bfdb-490d-a3f0-ab67c8070085 ro quiet splash vt.handoff=7
Build Date: 12 February 2015  02:49:29PM
xorg-server 2:1.15.1-0ubuntu2.7 (For technical support please see http://www.ubuntu.com/support)
Current version of pixman: 0.30.2
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.


Оффлайн AlexBKost

  • Старожил
  • *
  • Сообщений: 3790
  • Kubuntu 12.04, 16.04, 18.04, 20.04, 22.04, 24.04
    • Просмотр профиля
Re: Pyrit не видит GPU (не устанавливается cpyrit-opencl)
« Ответ #3 : 10 Февраля 2017, 23:28:36 »
Olengoda, ну что, все не так уж и плохо. Но сборка пакетов fglrx должна производиться командой
sudo ./ati-installer.sh 15.302 --buildpkg Ubuntu/trusty а не как у вас под первым спойлером. Во вторых, xorg.conf создавать не обязательно, без острой на то необходимости, Crimson прекрасно обходится без него.

Я не берусь ручаться какая из этих поправок поможет вам с Pyrit, ибо вопроса Pyrit совсем не касаюсь, только Crimson.
Я странен, а не странен кто ж? (С)

Оффлайн Olengoda

  • Автор темы
  • Новичок
  • *
  • Сообщений: 3
    • Просмотр профиля
Re: Pyrit не видит GPU (не устанавливается cpyrit-opencl)
« Ответ #4 : 11 Февраля 2017, 09:26:52 »
AlexBKost, спасибо Вам за ответ.
сборка пакетов fglrx должна производиться командой
Думается мне, что проблема не в этом. "Для Ubuntu совсем не обязательно указывать версию, инсталлятор сам определит" - цитата с сайта Я думаю, проблема тут: The headers required to build the OpenCL-kernel were not found. Trying to continue anyway...

 

Страница сгенерирована за 0.037 секунд. Запросов: 25.