Browse files

added example script for those that have IPP/MKL installed.

  • Loading branch information...
1 parent 3f92634 commit 98e43c584be370e679bfe2c3490d356705d344d2 @sccolbert sccolbert committed Apr 16, 2011
Showing with 18 additions and 0 deletions.
  1. +18 −0 cwrap/examples/ipp.py
View
18 cwrap/examples/ipp.py
@@ -0,0 +1,18 @@
+import os
+
+from cwrap.config import Config, Header
+from cwrap.codegen import generate
+
+BASE_PATH = '/Developer/opt/intel/ipp/include'
+
+headers = []
+for item in os.listdir(BASE_PATH):
+ if item.endswith('.h'):
+ if item != 'mkl_gmp.h':
+ headers.append(Header(os.path.join(BASE_PATH, item)))
+
+if __name__ == '__main__':
+ config = Config(include_dirs=[BASE_PATH],
+ save_dir='.',
+ headers=headers)
+ generate(config)

0 comments on commit 98e43c5

Please sign in to comment.