diff options
author | Cedric Nugteren <web@cedricnugteren.nl> | 2018-08-05 21:12:39 +0200 |
---|---|---|
committer | Cedric Nugteren <web@cedricnugteren.nl> | 2018-08-05 21:12:39 +0200 |
commit | fe639455bd1e02c22c459f9e29654f82652e0a97 (patch) | |
tree | f908efbddf52b46f72a0dbc081aa6e9c5745e4f8 /scripts/generator/generator/cpp.py | |
parent | 2bea758165cd8c784d1fafe60a949154c2e10000 (diff) |
Added an option to compile the Netlib API with static OpenCL device and context
Diffstat (limited to 'scripts/generator/generator/cpp.py')
-rw-r--r-- | scripts/generator/generator/cpp.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/generator/generator/cpp.py b/scripts/generator/generator/cpp.py index 51ca047c..6dc3fc93 100644 --- a/scripts/generator/generator/cpp.py +++ b/scripts/generator/generator/cpp.py @@ -145,8 +145,8 @@ def clblast_netlib_c_cc(routine): result += routine.routine_header_netlib(flavour, 9, "") + " {" + NL # Initialize OpenCL - result += " auto device = get_device();" + NL - result += " auto context = clblast::Context(device);" + NL + result += " OPTIONAL_STATIC auto device = get_device();" + NL + result += " OPTIONAL_STATIC auto context = clblast::Context(device);" + NL result += " auto queue = clblast::Queue(context, device);" + NL # Set alpha and beta |