From 239144659b29c0a5ecd83a34e0e57387a1060ed7 Mon Sep 17 00:00:00 2001 From: Tom Rondeau Date: Tue, 7 Dec 2010 18:50:28 -0500 Subject: Initial checkin for VOLK - Vector-Optimized Library of Kernels. This is a new SIMD library. It currently stands by itself under the GNU Radio tree and can be used separately. We will integrate the build process into GNU Raio and start building off of its functionality over time. --- volk/python/__init__.py | 53 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 volk/python/__init__.py (limited to 'volk/python/__init__.py') diff --git a/volk/python/__init__.py b/volk/python/__init__.py new file mode 100644 index 000000000..6513a31dd --- /dev/null +++ b/volk/python/__init__.py @@ -0,0 +1,53 @@ +# +# Copyright 2008 Free Software Foundation, Inc. +# +# This file is part of GNU Radio +# +# GNU Radio is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3, or (at your option) +# any later version. +# +# GNU Radio is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License along +# with this program; if not, write to the Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +# + +# The presence of this file turns this directory into a Python package + +# ---------------------------------------------------------------- +# Temporary workaround for ticket:181 (swig+python problem) +import sys +_RTLD_GLOBAL = 0 +try: + from dl import RTLD_GLOBAL as _RTLD_GLOBAL +except ImportError: + try: + from DLFCN import RTLD_GLOBAL as _RTLD_GLOBAL + except ImportError: + pass + +if _RTLD_GLOBAL != 0: + _dlopenflags = sys.getdlopenflags() + sys.setdlopenflags(_dlopenflags|_RTLD_GLOBAL) +# ---------------------------------------------------------------- + + +# import swig generated symbols into the libvector namespace +from libvector_swig import * + +# import any pure python here +# from libvector_foo import bar +# from libvector_baz import * + + +# ---------------------------------------------------------------- +# Tail of workaround +if _RTLD_GLOBAL != 0: + sys.setdlopenflags(_dlopenflags) # Restore original flags +# ---------------------------------------------------------------- -- cgit From 917e67d031bf5f044dfbbae3d4cf01b167b7b903 Mon Sep 17 00:00:00 2001 From: Tom Rondeau Date: Wed, 8 Dec 2010 01:00:42 -0500 Subject: volk: Cleaning up naming from old libvector to volk. --- volk/python/__init__.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'volk/python/__init__.py') diff --git a/volk/python/__init__.py b/volk/python/__init__.py index 6513a31dd..7239e7e23 100644 --- a/volk/python/__init__.py +++ b/volk/python/__init__.py @@ -1,5 +1,5 @@ # -# Copyright 2008 Free Software Foundation, Inc. +# Copyright 2010 Free Software Foundation, Inc. # # This file is part of GNU Radio # @@ -38,12 +38,12 @@ if _RTLD_GLOBAL != 0: # ---------------------------------------------------------------- -# import swig generated symbols into the libvector namespace -from libvector_swig import * +# import swig generated symbols into the volk namespace +from volk_swig import * # import any pure python here -# from libvector_foo import bar -# from libvector_baz import * +# from volk_foo import bar +# from volk_baz import * # ---------------------------------------------------------------- -- cgit