Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
11 years ago

OpenCL SDK can't find valid license file

I'm getting whenever I try invoke the kernel on certain build server:

Error: aoc: Can't find a valid license for the Altera SDK for OpenCL

I've definitely set LM_LICENSE_FILE correctly - Quartus is picking all the licenses it should, and the OpenCL SDK license is part of the same file. If I use
lmutil lmstat -a
on the server in question, the OpenCL SDK license is reported as
 Users of opencl_sdk:  (Total of 5 licenses issued;  Total of 0 licenses in use) 

The same license settings work fine on several other machines in the same subnet, and the licenses are floating (i.e. not locked to a specific MAC). I suspect there might be an issue with the shared libraries that the license lookup uses - is there a way to debug the license acquisition in more detail?

We have the Nallatech board support package installed (we have a PCIe385N-D5 board) which requires its own license - could it be related to that?

5 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi Gordonei,

    You will probably have seen entry 3-1 of this article http://www.alteraforum.com/forum/showthread.php?t=46355 which addresses the requirements for the Altera License but applies to the Fixed Seat license rather than the Floating License that you are using.

    Out of the 3 recommendations for the Fixed Seat license, you are using the 1 recommendation that would still apply which is to use LM_LICENSE_FILE rather than set the license server location in the Quartus-II License Manager GUI.

    If you have other machines that pick up correctly both the Quartus-II & the OpenCL license from your license server and only that one machine does not then I would double check that your LM_LICENSE_FILE environment variable does not contain a typo (double check as I'm sure you already have checked!). Maybe the server port rather than the server name contains a typo?

    The Nallatech license for the 385 BSP uses a mechanism totally independent from the Altera license and it will not alter the behavior of the Altera license.

    If you have set up both the server path in the Quartus-II License Manager and set up the LM_LICENSE_PATH environement variable, I would also make sure you remove all the Quartus-II License Manager GUI settings and only work with LM_LICENSE_FILE.

    Thanks,

    G
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Thank you, I saw the Nallatech debugging thread.

    The license settings are actually shared between all of the servers, both functioning and nonfunctioning - a common configuration file is used to set the environmental variables. Just to double check though;) I've used
     printenv | grep LM_LICENSE_FILE 
    which returns the settings on the server concerned. I've also tried removing the settings in the Quartus II GUI to no avail.

    My suspicion is that there is something strange going on with a library that flexlm is using and so the OpenCL SDK license lookup is failing. I've tried
    ldd $(which aoc)
    , but everything seems in order.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Realised I hadn't replied to this - the issue was that the server concerned wasn't whitelisted in the FlexLM server configuration.

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    Hi Gordonei,

    You will probably have seen entry 3-1 of this article http://www.alteraforum.com/forum/showthread.php?t=46355 which addresses the requirements for the Altera License but applies to the Fixed Seat license rather than the Floating License that you are using.

    Out of the 3 recommendations for the Fixed Seat license, you are using the 1 recommendation that would still apply which is to use LM_LICENSE_FILE rather than set the license server location in the Quartus-II License Manager GUI.

    If you have other machines that pick up correctly both the Quartus-II & the OpenCL license from your license server and only that one machine does not then I would double check that your LM_LICENSE_FILE environment variable does not contain a typo (double check as I'm sure you already have checked!). Maybe the server port rather than the server name contains a typo?

    The Nallatech license for the 385 BSP uses a mechanism totally independent from the Altera license and it will not alter the behavior of the Altera license.

    If you have set up both the server path in the Quartus-II License Manager and set up the LM_LICENSE_PATH environement variable, I would also make sure you remove all the Quartus-II License Manager GUI settings and only work with LM_LICENSE_FILE.

    Thanks,

    G

    --- Quote End ---

    I did every thing you mention in above but unfortunately it didn't work for me. I got license file for my university. I've set the LM_LICENSE_PATH environement correctly and the add the license to quarters as well but it shows me the same error "Can't find a valid license for the Altera SDK for OpenCL". I've did it to different computer with another license file but it shows me the same error. can you please tell me is there have another way to install this license file?
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi,

    I would recommend opening a service request with Altera to get help on how to set up your license file in your system

    Some issues I have come across in the past:

    (1) trying to use a fixed node license as a floating license (or the opposite) - the license file format is different

    (2) if you are trying to use a version of Quartus which is newer than the Subscription Expiration date of your license then that will not work either

    Thanks