Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,10 @@ To install with references to the source code where it is downloaded (so that
changes in the sourcecode are reflected immediately):

$ pip install -e <DIR>[cuda] --user

For windows installation install all required software with pip or conda and run
following in the kde-directory while in your prefered python environment

$ pip install ".[cuda]"


7 changes: 7 additions & 0 deletions kde/kde.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,15 @@

#include <Python.h>
#include <math.h>

#ifdef _MSC_VER
#include <winsock.h>

#else
#include <time.h>

#endif

#include <stdio.h>
#define _USE_MATH_DEFINES
#include <math.h>
Expand Down
9 changes: 7 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,19 @@
#!/usr/bin/env python


import platform
from distutils.core import setup, Extension


if __name__ == "__main__":
if(platform.system()=='Windows'):
extra_compile_args=['-Wall', '-O2']
else:
extra_compile_args=['-Wall', '-O3', '-fPIC', '-Werror']

ckde = Extension(
name='kde.kde',
sources=['kde/kde.c'],
extra_compile_args=['-Wall', '-O3', '-fPIC', '-Werror']
extra_compile_args=extra_compile_args
)

setup(
Expand Down