blob: 68da74307f87ec8e3d495e81ceaba2411b0e4a71 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
"""
UseOMP detects if a function use OpenMP
"""
from pythran.passmanager import FunctionAnalysis
class UseOMP(FunctionAnalysis):
"""Detects if a function use openMP"""
def __init__(self):
self.result = False
super(UseOMP, self).__init__()
def visit_OMPDirective(self, _):
self.result = True
|