CentOS 7.9¿¡¼ µà¾ó GPU¸¦ ÀνĽÃ۱â À§Çؼ´Â ´ÙÀ½°ú °°Àº ´Ü°è¸¦ ¼öÇàÇØ¾ß ÇÕ´Ï´Ù:
¸ÕÀú ½Ã½ºÅÛ¿¡¼ »ç¿ëÇÏ´Â GPU°¡ ¾î¶² ¸ðµ¨ÀÎÁö È®ÀÎÇØ¾ß ÇÕ´Ï´Ù. À̸¦ À§Çؼ´Â ´ÙÀ½ ¸í·É¾î¸¦ »ç¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù:
perlCopy code
lspci | grep -E "VGA|3D"
ÀÌ ¸í·É¾î¸¦ ÀÔ·ÂÇÏ¸é ½Ã½ºÅÛ¿¡¼ »ç¿ëÇÏ´Â GPU ¸ðµ¨ÀÌ Ãâ·ÂµË´Ï´Ù.
½Ã½ºÅÛ¿¡¼ ÀνĵǴ GPU°¡ 2°³ ÀÌ»óÀÎ °æ¿ì, ´ÙÀ½°ú °°Àº ¸í·É¾î¸¦ »ç¿ëÇÏ¿© °¢°¢ÀÇ GPU¸¦ È®ÀÎÇÒ ¼ö ÀÖ½À´Ï´Ù:
phpCopy code
lspci -v -s <PCI_BUS_ID>
¿©±â¼ <PCI_BUS_ID>´Â ù ¹øÂ° ´Ü°è¿¡¼ Ãâ·ÂµÈ GPU ¸ðµ¨ÀÇ PCI ¹ö½º ID¸¦ ÀǹÌÇÕ´Ï´Ù.
µà¾ó GPU¸¦ »ç¿ëÇϱâ À§Çؼ´Â ÀûÀýÇÑ µå¶óÀ̹ö°¡ ¼³Ä¡µÇ¾î ÀÖ¾î¾ß ÇÕ´Ï´Ù. NVIDIA ±×·¡ÇÈ Ä«µå¸¦ »ç¿ëÇÏ´Â °æ¿ì, NVIDIAÀÇ °ø½Ä À¥»çÀÌÆ®¿¡¼ Ãֽеå¶óÀ̹ö¸¦ ´Ù¿î·ÎµåÇÏ¿© ¼³Ä¡ÇÒ ¼ö ÀÖ½À´Ï´Ù.
µå¶óÀ̹ö¸¦ ¼³Ä¡ÇÑ ÈÄ, °¢°¢ÀÇ GPU¸¦ »ç¿ëÇÒ ¼ö ÀÖµµ·Ï ¼³Á¤ÇØ¾ß ÇÕ´Ï´Ù. À̸¦ À§Çؼ´Â /etc/X11/xorg.conf ÆÄÀÏÀ» ¼öÁ¤ÇØ¾ß ÇÕ´Ï´Ù. ¾Æ·¡ ¿¹½Ã´Â µÎ °³ÀÇ NVIDIA ±×·¡ÇÈ Ä«µå¸¦ »ç¿ëÇÏ´Â °æ¿ì xorg.conf ÆÄÀÏÀÇ ¿¹½ÃÀÔ´Ï´Ù:
pythonCopy code
Section "ServerLayout" Identifier "Layout0" Screen 0 "Screen0" 0 0 Screen 1 "Screen1" RightOf "Screen0" InputDevice "Keyboard0" "CoreKeyboard" InputDevice "Mouse0" "CorePointer" EndSection Section "Device" Identifier "Card0" Driver "nvidia" BusID "PCI:<PCI_BUS_ID>:0:0" EndSection Section "Device" Identifier "Card1" Driver "nvidia" BusID "PCI:<SECOND_PCI_BUS_ID>:0:0" EndSection Section "Screen" Identifier "Screen0" Device "Card0" EndSection Section "Screen" Identifier "Screen1" Device "Card1" EndSection
¿©±â¼ <PCI_BUS_ID>¿Í <SECOND_PCI_BUS_ID>´Â °¢°¢ ù ¹øÂ°¿Í µÎ ¹øÂ° GPUÀÇ PCI ¹ö½º ID¸¦ ³ªÅ¸³À´Ï´Ù.
¸¶Áö¸·À¸·Î, ½Ã½ºÅÛÀ» ´Ù½Ã ½ÃÀÛÇÏ°í µà¾ó GPU°¡ Á¤»óÀûÀ¸·Î ÀÛµ¿ÇÏ´ÂÁö È®ÀÎÇÕ´Ï´Ù. À̸¦ À§Çؼ´Â ´ÙÀ½ ¸í·É¾î¸¦ »ç¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù:
Copy code
nvidia-smi
ÀÌ ¸í·É¾î¸¦ ÀÔ·ÂÇϸé ÇöÀç »ç¿ë °¡´ÉÇÑ GPUÀÇ ¸ñ·ÏÀÌ Ãâ·ÂµË´Ï´Ù.
<Ãâó: chatGPT.com >
|
|