Forum Discussion

sobla's avatar
sobla
Icon for New Contributor rankNew Contributor
5 years ago

No files cached by aoc (Intel FPGA OpenCL compiler) even with AOCL_TMP_DIR set

I'm trying to shorten the compilation process by setting the AOCL_TMP_DIR to a folder in my home directory which I have write access too. But even after running OpenCL compilations multiple times with and without the -fast-compile flag, the folder still remains empty and the compilation takes as long as ever. (Reference Section 7.22 in the Programming Guide here https://www.intel.com/content/www/us/en/programmable/documentation/mwh1391807965224.html)

The compilation does print out this but nothing in it still.

AOCL_TMP_DIR directory was specified at <dir>.
Ensure Linux and Windows compiles do not share the same directory as files may be incompatible.
aoc: Cached files in <dir> may be used to reduce compilation time

I'm using the Arria 10 PAC devstack with Quartus 19.2 same as the DevCloud Arria 10 1.2.1 nodes.

It says here: https://www.intel.com/content/www/us/en/programmable/support/support-resources/knowledge-base/embedded/2019/why-does-intel--fpga-sdk-for-opencl-version-18-1-1-not-generate-.html that is was corrected in 19.1 but looks like it isn't.

2 Replies

  • EricMunYew_C_Intel's avatar
    EricMunYew_C_Intel
    Icon for Frequent Contributor rankFrequent Contributor

    can you try not to define the $AOCL_TMP_DIR to your home directory, and let the tool to create by default.


    • sobla's avatar
      sobla
      Icon for New Contributor rankNew Contributor
      I have tried that since that's the default. But that doesn't work too on my local machine.

      Plus I need this for a shared cluster and need to redefine where the cache will be store so I do need the ability to change the default.