Browse Source

vendors: add EVGA and fix configure for Slackware

Fedora libpci devel package is named pciutils-devel
Debian/Ubuntu is libpci-dev

Slackware lib requires libz... i added the dependency in configure.ac
master
Tanguy Pruvot 9 years ago
parent
commit
a12dfa5370
  1. 2
      INSTALL
  2. 1
      configure.ac
  3. 1
      nvml.cpp

2
INSTALL

@ -13,7 +13,7 @@ but some distros may have a different default location) @@ -13,7 +13,7 @@ but some distros may have a different default location)
# Step 1: gcc and dependencies
dnf install gcc gcc-c++ automake
dnf install jansson-devel openssl-devel libcurl-devel
dnf install jansson-devel openssl-devel libcurl-devel zlib-devel pciutils-devel
# Step 2: nvidia drivers (Download common linux drivers from nvidia site)
dnf install kernel-devel

1
configure.ac

@ -72,6 +72,7 @@ AC_CHECK_LIB([pthread], [pthread_create], PTHREAD_LIBS="-lpthread", @@ -72,6 +72,7 @@ AC_CHECK_LIB([pthread], [pthread_create], PTHREAD_LIBS="-lpthread",
AC_CHECK_LIB([pthreadGC], [pthread_create], PTHREAD_LIBS="-lpthreadGC"
))))
AC_CHECK_LIB([z],[gzopen], [], [])
AC_CHECK_LIB([ssl],[SSL_library_init], [], [AC_MSG_ERROR([OpenSSL library required])])
AC_CHECK_LIB([crypto],[EVP_DigestFinal_ex], [], [AC_MSG_ERROR([OpenSSL library required])])

1
nvml.cpp

@ -909,6 +909,7 @@ static int linux_gpu_vendor(uint8_t pci_bus_id, char* vendorname, uint16_t &pid) @@ -909,6 +909,7 @@ static int linux_gpu_vendor(uint8_t pci_bus_id, char* vendorname, uint16_t &pid)
{ 0x10DE, "NVIDIA" },
{ 0x1458, "Gigabyte" },
{ 0x1462, "MSI" },
{ 0x3842, "EVGA" },
{ 0, "" }
};

Loading…
Cancel
Save