Skip to main content
benp1711322
Inspiring
March 1, 2023
Question

SDK_Invert_ProcAmp missing "

  • March 1, 2023
  • 1 reply
  • 670 views

In Visual Studio 2017 in Windows10, The SDK sample SDK_Invert_ProcAmp fails to build, and 'cannot open source file  "SDK_Invert_ProcAmp_Kernel.cl.h"' in SDK_Invert_ProcAmp.h . 

 

Tried deleting the '.h' to see if it was a typo. But this creates problems. 

 

Yes, I've added Boost and CUDA to the system environment variables as instructed in the AE GPU SDK Build Instructions PDF, and rebooted. 

 

All other projects built in VS2017 successfully through BuildAll.sln. 

 

Any tips? 

 

1 reply

benp1711322
Inspiring
March 2, 2023

Further to above... SDK_Invert_ProcAmp_Kernel.cu compiles fine. But trying to compile SDK_Invert_ProcAmp_Kernel.cl gives 4 errors: 

 

1. E1097 unknown attribute "no_init_all" in winnt.h

 

2. E0020 identifier "kSDK_Invert_ProcAmp_Kernel_OpenCLString" is undefined in SDK_Invert_ProcAmp.cpp

 

3. E1696 cannot open source file "SDK_Invert_ProcAmp_Kernel.cl.h" in SDK_Invert_ProcAmp.h

 

4. MSB6006 "cmd.exe" exited with code 1. in Microsoft.CppCommon.targets

 

Adding #define no_init_all deprecated to SDK_Invert_ProcAmp.h gets rid of errors 1 & 2.

 

The Output window shows an error with the Python script, produced by the SDK_Invert_ProcAmp_Kernel.cl, which calls CreateCString.py:

 

1> File "D:\AdobeSDK\AE2021\AfterEffectsSDK\Examples\GPUUtils\CreateCString.py", line 39
1> print command + '-i <inputFile> -o <outputFile> -n <nameOfString>'
1> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1>SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?

Commenting out the offending (and seemingly redundant) line of the Python script allows the project to be built. 

 

I am using Python 3.10.6. I can't see much change to the print command going back a reasonable way. 

 

Is there a more elegent way to resolve this problem?