Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

created cuda branch with void kernel #37

Open
wants to merge 13 commits into
base: develop
Choose a base branch
from
44 changes: 0 additions & 44 deletions .travis.yml

This file was deleted.

7 changes: 5 additions & 2 deletions PyContact/cy_modules/cy_gridsearch.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ from cython.view cimport array as cvarray
import numpy as np

cdef extern from "src/gridsearch.C":
double sasa_grid(const float *pos,int natoms, float pairdist, int allow_double_counting, int maxpairs, const float *radius,const int npts, double srad, int pointstyle, int restricted, const int* restrictedList)
double sasa_grid(const float *pos, int natoms, float pairdist, int allow_double_counting, int maxpairs,
const float *radius, const int npts, double srad, int pointstyle,
int restricted, const int* restrictedList)

cdef extern from "src/gridsearch.C":
int* find_within(const float *xyz, int *flgs, int *others, int num, float r)
Expand All @@ -13,7 +15,8 @@ def cy_sasa(npcoords, natoms, pairdist, allow_double_counting, maxsize, nprad,
cdef int [::1] cy_restrictedList = restrictedList
cdef float [::1] cy_radius = nprad
cdef float [::1] c_coords = npcoords[0]
cdef float sasa = sasa_grid(&c_coords[0], natoms, pairdist, 0, -1, &cy_radius[0] ,surfacePoints, probeRadius, pointstyle, restricted, &cy_restrictedList[0])
cdef float sasa = sasa_grid(&c_coords[0], natoms, pairdist, 0, -1, &cy_radius[0], surfacePoints, probeRadius,
pointstyle, restricted, &cy_restrictedList[0])
return sasa

def cy_find_within(xyz, flgs, others, num, r):
Expand Down
Loading