Page 1 of 1

Fixing YDL for CUDA man pages

PostPosted: 22 Dec 2011, 12:56
by ppietro
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