Skip to content

Commit edd17ab

Browse files
committed
remove fopenmp
1 parent 3478b46 commit edd17ab

File tree

2 files changed

+1
-12
lines changed

2 files changed

+1
-12
lines changed

pandas/_libs/window/aggregations.pyx

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
import cython
44

5-
from cython.parallel cimport prange
6-
75
from libcpp.deque cimport deque
86

97
import numpy as np
@@ -1411,13 +1409,7 @@ def ewma_time(ndarray[float64_t] vals, int minp, ndarray[int64_t] times,
14111409

14121410
weights_sum = 0
14131411
weights_dot = 0
1414-
if N > 100:
1415-
for j in prange(num_not_nan):
1416-
weight = 0.5 ** (<float>(time - times_masked[j]) / halflife)
1417-
weights_sum += weight
1418-
weights_dot += weight * observations[j]
1419-
else:
1420-
for j in range(num_not_nan):
1412+
for j in range(num_not_nan):
14211413
weight = 0.5 ** (<float>(time - times_masked[j]) / halflife)
14221414
weights_sum += weight
14231415
weights_dot += weight * observations[j]

setup.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -490,9 +490,6 @@ def run(self):
490490
if np.__version__ < LooseVersion("1.16.0"):
491491
extra_compile_args.remove("-Werror")
492492

493-
extra_compile_args.append('-fopenmp')
494-
extra_link_args.append('-fopenmp')
495-
496493
# ----------------------------------------------------------------------
497494
# Specification of Dependencies
498495

0 commit comments

Comments
 (0)