MultiThreaded code

[Old posts from the commercial version of ArrayFire] Discussion of ArrayFire using CUDA or OpenCL.

Moderator: pavanky

MultiThreaded code

Postby r0man » Wed Mar 26, 2014 11:41 am

Hello, i'm trying yours trial version of AF 2.0 in my code. My programm invoke 2 threads in each of which just creates AF array, as a result - error like this:
src/gena/gi_core.cpp:57:error: src/license.cpp: 472: failed to obtain af_base license (error -45: Invalid parameter. )
Feature : af_base
FLEXnet Licensing error: -42,252
(if i use only 1 thread everything works well)
Is it right that no way to use AF for programms like mine?
Posts: 1
Joined: Wed Mar 26, 2014 11:31 am

Re: MultiThreaded code

Postby pavanky » Wed Apr 02, 2014 1:44 pm


You may want to try to run a simple arrayfire function (af::randu(2,2)) before you launch the threads so the appropriate license is checked out.

If you are still having trouble, please let us know so we can try to resolve the issue.
Pavan Yalamanchili,
~ If it is not broken, you have not tried hard enough ~
User avatar
Site Admin
Posts: 1123
Joined: Mon Mar 15, 2010 7:39 pm
Location: Atlanta, GA

Return to [archive-commercial] Programming & Development with ArrayFire