Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

- Fixed Compiling On Linux

  • Loading branch information...
commit 038a65da25c20c93f1f18a98782c4058f428a9bf 1 parent 10c3741
@bitshiftio authored
Showing with 20 additions and 11 deletions.
  1. +4 −2 ReadMe.txt
  2. +2 −2 adl_functions.h
  3. +14 −7 setup.py
View
6 ReadMe.txt
@@ -1,4 +1,4 @@
-/* ---------------------------------------------------------------------------
+/* ---------------------------------------------------------------------------
** This software is in the public domain, furnished "as is", without technical
** support, and with no warranty, express or implied, as to its usefulness for
** any purpose.
@@ -21,8 +21,10 @@
I accept NO responsibility for any damage that may or may not be caused to your system by attempting an overclock, and this will also possibly void a manufacturer's warranty. Do this at your OWN RISK.
-
ADL SDK - http://developer.amd.com/Downloads/ADL_SDK_3.0.zip
+
+Put the ADL SDK in ./ADL_SDK
+
Functions
pyADL.SetupADL(DeviceIndex) - This sets the GPU you wish to use.
View
4 adl_functions.h
@@ -1,4 +1,4 @@
-/*******************************************************************************
+/*******************************************************************************
* This program reads HW information from your ATI Radeon card and displays them
* You can also change frequencies and voltages.
@@ -38,7 +38,7 @@
#include <tchar.h>
#endif
-#include "..\include\adl_sdk.h"
+#include "adl_sdk.h"
// Definitions of the used function pointers. Add more if you use other ADL APIs
View
21 setup.py
@@ -1,4 +1,9 @@
+import sys
from distutils.core import setup, Extension
+if(sys.platform == 'linux2'):
+ extra_compile_args = ['-DLINUX']
+else:
+ extra_compile_args = None
setup (name = 'pyADL',
version = '0.01',
@@ -6,10 +11,12 @@
author = 'netxshare',
url = 'http://www.bitshift.io',
- ext_modules = [
- Extension(
- 'pyADL',
- sources = ['pyADL.cpp','adl.cpp']
- )
- ]
- )
+ ext_modules = [
+ Extension(
+ 'pyADL',
+ extra_compile_args=extra_compile_args,
+ include_dirs = ['./ADL_SDK/include/'],
+ sources = ['pyADL.cpp','adl.cpp']
+ )
+ ]
+ )
Please sign in to comment.
Something went wrong with that request. Please try again.