Skip to content
Snippets Groups Projects
Commit ad3b4652 authored by Stephan Philips's avatar Stephan Philips
Browse files

fix merge

parents 82b54445 f4234030
No related branches found
No related tags found
No related merge requests found
...@@ -16,7 +16,6 @@ TODO list: ...@@ -16,7 +16,6 @@ TODO list:
* Update virtual gate matrix function * Update virtual gate matrix function
* Support for calibarion arguments? -- this should be engineered well. * Support for calibarion arguments? -- this should be engineered well.
* HVI2 integration * HVI2 integration
* cython/c++ object of keysight objects to fully release the GIL
* add DSP module (must also be C++) * add DSP module (must also be C++)
TODO bugs and small things to fix, TODO bugs and small things to fix,
......
...@@ -3,6 +3,7 @@ from distutils.extension import Extension ...@@ -3,6 +3,7 @@ from distutils.extension import Extension
from Cython.Build import cythonize from Cython.Build import cythonize
import numpy import numpy
<<<<<<< HEAD
extensions = [ extensions = [
Extension("uploader", Extension("uploader",
sources = ["uploader.pyx","mem_ctrl.cpp", "keysight_awg_post_processing_and_upload.cpp"], sources = ["uploader.pyx","mem_ctrl.cpp", "keysight_awg_post_processing_and_upload.cpp"],
...@@ -12,9 +13,36 @@ extensions = [ ...@@ -12,9 +13,36 @@ extensions = [
language='c++', language='c++',
extra_compile_args=['-fopenmp'], extra_compile_args=['-fopenmp'],
) )
=======
import os
>>>>>>> f42340300141c5c8523f9a32feb242b9e51a8dc1
] if os.name == 'nt':
extensions = [
Extension("uploader",
sources = ["uploader.pyx","mem_ctrl.cpp", "keysight_awg_post_processing_and_upload.cpp"],
include_dirs=[numpy.get_include(),"C://Program Files (x86)//Keysight//SD1//Libraries//include//cpp//",
"C://Program Files (x86)//Keysight//SD1//Libraries//include//common//"],
libraries=["SD1core", "SD1pxi"],
library_dirs=["C://Program Files (x86)//Keysight//SD1//shared//"],
language='c++',
extra_compile_args=['/openmp'],
)
]
else:
extensions = [
Extension("uploader",
sources = ["uploader.pyx","mem_ctrl.cpp", "keysight_awg_post_processing_and_upload.cpp"],
include_dirs=[numpy.get_include(),"/usr/local/include/Keysight/SD1/cpp", "/usr/local/include/Keysight/SD1/common"],
libraries=["SD1core", "SD1pxi", "gomp"],
library_dirs=["/usr/local/lib/Keysight/SD1/"],
language='c++',
extra_compile_args=['-fopenmp'],
)
]
setup( setup(
name="Keysight_uploader", name="Keysight_uploader",
ext_modules=cythonize(extensions), ext_modules=cythonize(extensions),
) )
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment