-
-
Notifications
You must be signed in to change notification settings - Fork 202
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix floating point conversion in Python wrapper (#515)
* Generator.py: use LF ending when run from windows * Convert scalar input to float16 in cython * Index buffer as uints in cython wrapper * Update CHANGELOG and bump ver. 1.4.0
- Loading branch information
Showing
6 changed files
with
75 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,11 @@ | |
from distutils.extension import Extension | ||
from Cython.Distutils import build_ext | ||
import platform | ||
import numpy | ||
import os | ||
|
||
np_incdir = numpy.get_include() | ||
np_libdir = os.path.join(np_incdir, '..', 'lib', '') | ||
|
||
runtime_library_dirs = list() | ||
if platform.system() == "Linux": | ||
|
@@ -23,15 +28,17 @@ | |
Extension( | ||
"pyclblast", | ||
["src/pyclblast.pyx"], | ||
libraries=["clblast"], | ||
libraries=["clblast", "npymath"], | ||
runtime_library_dirs=runtime_library_dirs, | ||
library_dirs=[np_libdir], | ||
include_dirs=[np_incdir], | ||
language="c++" | ||
) | ||
) | ||
|
||
setup( | ||
name="pyclblast", | ||
version="1.3.2", | ||
version="1.4.0", | ||
author="Cedric Nugteren", | ||
author_email="[email protected]", | ||
url="https://github.com/CNugteren/CLBlast/blob/master/src/pyclblast", | ||
|
Oops, something went wrong.