ALT Linux Community general discussions
 help / color / mirror / Atom feed
* [Comm] ядро 3.0 и драйверы nvidia
@ 2011-09-28  5:16 Константин Михайленко
  2011-09-28  7:06 ` andriy
  0 siblings, 1 reply; 3+ messages in thread
From: Константин Михайленко @ 2011-09-28  5:16 UTC (permalink / raw)
  To: ALT Linux Community general discussions

Добрый день, коллеги!

Преамбула: использую текущий репозиторий p6 для работы, а для
вычислений использую nVidia CUDA.
Как показывает мой опыт, для того, чтобы CUDA нормально у меня
устанавливалась, мне необходимо ставить их драйвер, который лежит у
них на сайте (http://developer.nvidia.com/cuda-toolkit-40).
Во всех ранее проходивших моих обновлениях приходилось
перекомпилировать драйвер.
Это немного раздражало, но не сильно напрягало.

Однако сегодня я решил, что пора обновлять ядро (последнее стоявшее --
2.6.38-alt8.1) и установил текущее
kernel-image-std-def-3.0.4-alt0.M60P.2
И вот тут я получил проблему, так как драйвер отказался собираться по причине
=================== /var/log/nvidia-installer.log ====================
Using: nvidia-installer ncurses user interface
-> License accepted.
-> Installing NVIDIA driver version 270.41.19.
-> There appears to already be a driver installed on your system (version: 270.
   41.19).  As part of installing this driver (version: 270.41.19), the existin
   g driver will be uninstalled.  Are you sure you want to continue? ('no' will
   abort installation) (Answer: Yes)
-> Performing CC sanity check with CC="cc".
-> Performing CC version check with CC="cc".
-> Kernel source path: '/lib/modules/3.0.4-std-def-alt0.M60P.2/build'
-> Kernel output path: '/lib/modules/3.0.4-std-def-alt0.M60P.2/build'
ERROR: If you are using a Linux 2.4 kernel, please make sure
       you either have configured kernel sources matching your
       kernel or the correct set of kernel headers installed
       on your system.

       If you are using a Linux 2.6 kernel, please make sure
       you have configured kernel sources matching your kernel
       installed on your system. If you specified a separate
       output directory using either the "KBUILD_OUTPUT" or
       the "O" KBUILD parameter, make sure to specify this
       directory with the SYSOUT environment variable or with
       the equivalent nvidia-installer command line option.

       Depending on where and how the kernel sources (or the
       kernel headers) were installed, you may need to specify
       their location with the SYSSRC environment variable or
       the equivalent nvidia-installer command line option.
ERROR: Installation has failed.  Please see the file
       '/var/log/nvidia-installer.log' for details.  You may find suggestions
       on fixing installation problems in the README available on the Linux
       driver download page at www.nvidia.com.
=====================================================

Попытки поставить исходники (зачем? на ядрах 2.6 этот же драйвер их у
меня не требовал), а также скормить через параметры установки пути к
исходникам и заголовкам ни к чему новому не привели.

Очень прошу консультации о правильных действиях, которые мне
необходимо предпринять.

Спасибо!

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Comm] ядро 3.0 и драйверы nvidia
  2011-09-28  5:16 [Comm] ядро 3.0 и драйверы nvidia Константин Михайленко
@ 2011-09-28  7:06 ` andriy
  2011-09-28  8:02   ` Константин Михайленко
  0 siblings, 1 reply; 3+ messages in thread
From: andriy @ 2011-09-28  7:06 UTC (permalink / raw)
  To: ALT Linux Community general discussions

On 28.09.11 08:16, Константин Михайленко wrote:
> Добрый день, коллеги!
>
> Преамбула: использую текущий репозиторий p6 для работы, а для
> вычислений использую nVidia CUDA.
> Как показывает мой опыт, для того, чтобы CUDA нормально у меня
> устанавливалась, мне необходимо ставить их драйвер, который лежит у
> них на сайте (http://developer.nvidia.com/cuda-toolkit-40).
> Во всех ранее проходивших моих обновлениях приходилось
> перекомпилировать драйвер.
> Это немного раздражало, но не сильно напрягало.
>
> Однако сегодня я решил, что пора обновлять ядро (последнее стоявшее --
> 2.6.38-alt8.1) и установил текущее
> kernel-image-std-def-3.0.4-alt0.M60P.2
> И вот тут я получил проблему, так как драйвер отказался собираться по причине
> =================== /var/log/nvidia-installer.log ====================
> Using: nvidia-installer ncurses user interface
> ->  License accepted.
> ->  Installing NVIDIA driver version 270.41.19.
> ->  There appears to already be a driver installed on your system (version: 270.
>     41.19).  As part of installing this driver (version: 270.41.19), the existin
>     g driver will be uninstalled.  Are you sure you want to continue? ('no' will
>     abort installation) (Answer: Yes)
> ->  Performing CC sanity check with CC="cc".
> ->  Performing CC version check with CC="cc".
> ->  Kernel source path: '/lib/modules/3.0.4-std-def-alt0.M60P.2/build'
> ->  Kernel output path: '/lib/modules/3.0.4-std-def-alt0.M60P.2/build'
> ERROR: If you are using a Linux 2.4 kernel, please make sure
>         you either have configured kernel sources matching your
>         kernel or the correct set of kernel headers installed
>         on your system.
>
>         If you are using a Linux 2.6 kernel, please make sure
>         you have configured kernel sources matching your kernel
>         installed on your system. If you specified a separate
>         output directory using either the "KBUILD_OUTPUT" or
>         the "O" KBUILD parameter, make sure to specify this
>         directory with the SYSOUT environment variable or with
>         the equivalent nvidia-installer command line option.
>
>         Depending on where and how the kernel sources (or the
>         kernel headers) were installed, you may need to specify
>         their location with the SYSSRC environment variable or
>         the equivalent nvidia-installer command line option.
> ERROR: Installation has failed.  Please see the file
>         '/var/log/nvidia-installer.log' for details.  You may find suggestions
>         on fixing installation problems in the README available on the Linux
>         driver download page at www.nvidia.com.
> =====================================================
>
> Попытки поставить исходники (зачем? на ядрах 2.6 этот же драйвер их у
> меня не требовал), а также скормить через параметры установки пути к
> исходникам и заголовкам ни к чему новому не привели.
>
> Очень прошу консультации о правильных действиях, которые мне
> необходимо предпринять.
>
> Спасибо!
Рецепт был где-то на сайте федоры.
http://forums.fedoraforum.org/showthread.php?t=268382
+
при инсталяции драйвера от Нвидии делал ним апдейт: при инсталяции он 
конектится к их оф.сайту и что-то последнее скачивает (хотя я руками 
скачивал последнюю версию). После чего все ок.
У меня работает CUDA на

.[andriy@Andriy ~]$ uname -a
Linux Andriy.localdomain 3.0.4-std-def-alt1 #1 SMP Wed Aug 31 07:24:16 
UTC 2011 x86_64 GNU/Linux


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Comm] ядро 3.0 и драйверы nvidia
  2011-09-28  7:06 ` andriy
@ 2011-09-28  8:02   ` Константин Михайленко
  0 siblings, 0 replies; 3+ messages in thread
From: Константин Михайленко @ 2011-09-28  8:02 UTC (permalink / raw)
  To: ALT Linux Community general discussions

> У меня работает CUDA на
>
> .[andriy@Andriy ~]$ uname -a
> Linux Andriy.localdomain 3.0.4-std-def-alt1 #1 SMP Wed Aug 31 07:24:16 UTC
> 2011 x86_64 GNU/Linux

Ну, у меня сейчас тоже аналогично
$ uname -a
Linux const-bgu.localdomain 3.0.4-std-def-alt0.M60P.2 #1 SMP Tue Sep
20 23:13:02 UTC 2011 x86_64 GNU/Linux

На драйвер, который идёт с нашим ядром CUDA встала.
Но после сборки SDK имею:
================================================
Error: API mismatch: the NVIDIA kernel module has version 280.13,
but this NVIDIA driver component has version 270.41.19.  Please make
sure that the kernel module and all NVIDIA driver components
have the same version.
Error: API mismatch: the NVIDIA kernel module has version 280.13,
but this NVIDIA driver component has version 270.41.19.  Please make
sure that the kernel module and all NVIDIA driver components
have the same version.
nbody.cpp(1016) : cudaSafeCall() Runtime API error : no CUDA-capable
device is detected.
================================================

Понятно, что где-то остался мусор от драйвера с офсайта,
но плохо представляю, как от него избавиться.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-09-28  8:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-09-28  5:16 [Comm] ядро 3.0 и драйверы nvidia Константин Михайленко
2011-09-28  7:06 ` andriy
2011-09-28  8:02   ` Константин Михайленко

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git