Fixing YDL for CUDA man pages

General discussion Forum. All YDL related question which are not Install or Beginner questions.

Fixing YDL for CUDA man pages

Postby ppietro » 22 Dec 2011, 12:56

Hi everyone,

I just noticed that the man pages for YDL for CUDA aren't working properly.

The issue is a conflict between a script that sets the MANPATH environment variable to point at /usr/share/man/cuda31-man for the CUDA installation, and the actual /etc/man.config script which finds all the man pages.

Basically, when you type man, the /etc/man.config script finds all of the man pages, then the /etc/profile.d/nvidia-man31.sh script overrides it to point at /usr/share/man/cuda31-man which only has a few man pages.

It's late, so I apologize for the brute force fix, but this worked.

  1. Open a terminal window
  2. Switch to su
  3. cd /etc/profile.d
  4. mv nvidia-man31.sh nvidia-man31.dontuse
  5. cd /etc
  6. vi man.config
  7. Now - in the vi editor, look for a block of text like this:
    MANPATH /usr/man
    MANPATH /usr/share/man
    MANPATH /usr/local/man
    MANPATH /usr/local/share/man
    MANPATH /usr/X11R6/man

    and make it look like this:
    MANPATH /usr/man
    MANPATH /usr/share/man
    MANPATH /usr/local/man
    MANPATH /usr/local/share/man
    MANPATH /usr/X11R6/man
    MANPATH /usr/share/man/cuda31-man

    (added text bolded for clarity - don't bold it)
  8. Save, exit and reboot

You can verify that it's working by testing man pages for standard linux commands like ls or ps and CUDA specific commands like surfaceAlignment or srcY

Cheers,
Paul
User avatar
ppietro
Site Admin
Site Admin
 
Posts: 4965
Joined: 13 Sep 2007, 22:18

Return to General

Who is online

Users browsing this forum: No registered users and 5 guests