• Global community
    • Language:
      • Deutsch
      • English
      • EspaƱol
      • FranƧais
      • PortuguĆŖs
  • ę—„ęœ¬čŖžć‚³ćƒŸćƒ„ćƒ‹ćƒ†ć‚£
    Dedicated community for Japanese speakers
  • ķ•œźµ­ ģ»¤ė®¤ė‹ˆķ‹°
    Dedicated community for Korean speakers
Exit
0

build issues for compiling GPU sdk example code on Windows

Explorer ,
Apr 26, 2021 Apr 26, 2021

Copy link to clipboard

Copied

Hi,

I have installed Cuda toolkit 11.3, boost and Python and tryng to build sdk reference examples. I am able to succesfully build all examples except Effects and Transitions(SDK_CrossDissolve,SDK_ProcAmp and Vignette ) which uses After Effects. One observed error is 

Error MSB6006 "cmd.exe" exited with code 1. SDK_ProcAmp (GPU)

Please let me know how to resolve this issue.

 

TOPICS
Error or problem , SDK

Views

1.4K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Adobe Employee , May 05, 2021 May 05, 2021

Hi Irfan,

 

Sorry for the delay.

We could isolate this problem to NVIDIA dropping support for arch 3.0 from CUDA toolkit 11.0

 

There are 2 possible solutions to this :-

1) Use CUDA toolkit 10.x for building

2) Edit SDK_XXX.vcxproj in Examples\Projects\GPUVideoFilter\SDK_ProcAmp\Win\ in any text editor
You are looking for 
<ItemGroup>
<CustomBuild Include="..\SDK_XXX.cu">
....
</CustomBuild>

</ItemGroup>

Remove '-arch=sm_30' from the <Command> tag.

It should resolve the problem for you.

 

Please feel free to rep

...

Votes

Translate

Translate
Adobe Employee ,
Apr 26, 2021 Apr 26, 2021

Copy link to clipboard

Copied

I've asked for help from GPU specialists.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Apr 26, 2021 Apr 26, 2021

Copy link to clipboard

Copied

Hey,

 

Can you post/send the entire output?

There are plenty of reasons for  Error MSB6006 which needs the entire build log to be identified.

 

Thanks

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Apr 26, 2021 Apr 26, 2021

Copy link to clipboard

Copied

Please find the details error log:

Severity Code Description Project File Line Suppression State
Error MSB6006 "cmd.exe" exited with code 1. Vignette (GPU) C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets 209

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Apr 26, 2021 Apr 26, 2021

Copy link to clipboard

Copied

Thanks for the Error Log Ifran,

I am looking for the output log which is a part of the output window in Visual Studio.

 

There are log statements and warnings which do not make it to the Error log which seems to be crucial in this scenario 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Apr 28, 2021 Apr 28, 2021

Copy link to clipboard

Copied

Hi Pusingha,

Please find more log information. One observation from my side setting up -arch=sm_30.

Let me know how to modify -arch=sm_nn

 

^E:\TL-18\SDK\PREMIERE_PRO_CC_13_WIN_SDK\EXAMPLES\PROJECTS\GPUVIDEOFILTER\VIGNETTE\VIGNETTE.R
cl /D "PRWIN_ENV" /I "E:\TL-18\sdk\AEMarch2021SDK-Win\AfterEffectsSDK\Examples\Headers" /I "E:\TL-18\sdk\AEMarch2021SDK-Win\AfterEffectsSDK\Examples\Resources" /EP "..\Vignette.r" > "x64\Debug\Vignette.rr""E:\TL-18\sdk\AEMarch2021SDK-Win\AfterEffectsSDK\Examples\Resources\PiPLTool" "x64\Debug\Vignette.rr" "..\Vignette.rcp"
^E:\TL-18\SDK\PREMIERE_PRO_CC_13_WIN_SDK\EXAMPLES\PROJECTS\GPUVIDEOFILTER\VIGNETTE\VIGNETTE.CU
rem Correct compilation is dependant on nvcc being installed correctly, from the CUDA SDK"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.2\bin\nvcc.exe" -D_DEBUG -arch=sm_30 -use_fast_math -c -ccbin "C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\bin" -D_MBCS -Xcompiler /MDd,/EHsc,/W3,/nologo,/Zi -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.2include" -I./ -o "x64\Debug\Vignette.obj" "E:\TL-18\sdk\Premiere_Pro_CC_13_Win_SDK\Examples\Projects\GPUVideoFilter\Vignette\Win\..\Vignette.cu"

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
May 05, 2021 May 05, 2021

Copy link to clipboard

Copied

Hi Irfan,

 

Sorry for the delay.

We could isolate this problem to NVIDIA dropping support for arch 3.0 from CUDA toolkit 11.0

 

There are 2 possible solutions to this :-

1) Use CUDA toolkit 10.x for building

2) Edit SDK_XXX.vcxproj in Examples\Projects\GPUVideoFilter\SDK_ProcAmp\Win\ in any text editor
You are looking for 
<ItemGroup>
<CustomBuild Include="..\SDK_XXX.cu">
....
</CustomBuild>

</ItemGroup>

Remove '-arch=sm_30' from the <Command> tag.

It should resolve the problem for you.

 

Please feel free to reply/DM me if you still run into the problem

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
May 06, 2021 May 06, 2021

Copy link to clipboard

Copied

Hi Pusingha,

I have already tried both methods but its not working.

1. Installed CUDA toolkit v 10.2

2. Replaced '-arch=sm_30' with 'arch=sm_70' as the GPU card Nvidia 2080 Ti.

and 

3. Deleted '-arch=sm_30' 

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
May 06, 2021 May 06, 2021

Copy link to clipboard

Copied

Let me DM you around this

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
May 20, 2021 May 20, 2021

Copy link to clipboard

Copied

Please let me know if there's any update on the issue.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
May 20, 2021 May 20, 2021

Copy link to clipboard

Copied

Hey,

I sent a DM (direct message) about this. Did you not receive it?

 

Let me send one again. I will include my email so we can help you resolve the problem

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jun 07, 2021 Jun 07, 2021

Copy link to clipboard

Copied

LATEST

Hi Puneet,

 

Please let me know thereā€™s an update of GPU reference Premiere Pro and After Effects sdk examples.

I tried to compile AE SDK_Invert_ProcAmp but still similar issues are observed.

Please find the details environment, tools and command line parameters used to compilation.

 

Visual Studio Professional 2017 version 15.9.27

system configuration : Intel(R)Core(TM) i9-9900KF CPU @ 3.60GHz 3.60 GHz, 64 GB RAM, Nvidia 2080 Ti

After Effects : AEMarch2021SDK-Win

CUDA toolkit 10.1 Update 2

Boost 1.76.0

Reference example : SDK_Invert_ProcAmp

Custom build for SDK_Invert_ProcAmp_Kernel.cu

rem Correct compilation is dependant on nvcc being installed correctly, from the CUDA SDK

"$(CUDA_PATH)\bin\nvcc.exe" -arch=sm_30 -use_fast_math -c -ccbin "$(VCInstallDir)Tools\MSVC\14.16.27023\bin\Hostx64\x64" -D_MBCS -Xcompiler /MD,/EHsc,/W3,/nologo,/Zi -I"$(CUDA_SDK_BASE_PATH)\include" -I./ -I"$(ProjectDir)..\..\..\GPUUtils" -I$(BOOST_BASE_PATH) -o "$(IntDir)%(Filename).obj" "$(ProjectDir)..\%(Filename).cu"

 

Issues:

1>------ Rebuild All started: Project: SDK_Invert_ProcAmp, Configuration: Release x64 ------

1>Preprocessing OpenCL to Strings for SDK_Invert_ProcAmp_Kernel.cl

1>SDK_Invert_ProcAmp_Kernel.cl

1>'python' is not recognized as an internal or external command,

1>operable program or batch file.

1>Custom build step: Building SDK_Invert_ProcAmp_Kernel.cu

1>nvcc fatal   : A single input file is required for a non-link phase when an outputfile is specified

1>Compiling the PiPL

1>Microsoft (R) C/C++ Optimizing Compiler Version 19.16.27043 for x64

1>Copyright (C) Microsoft Corporation.  All rights reserved.

1>

1>SDK_Invert_ProcAmpPiPL.r

1>Microsoft (R) C/C++ Optimizing Compiler Version 19.16.27043 for x64

1>Copyright (C) Microsoft Corporation.  All rights reserved.

1>

1>SDK_Invert_ProcAmpPiPL.rrc

1>Smart_Utils.cpp

1>SDK_Invert_ProcAmp.cpp

1>Generating Code...

1>e:\tl-18\sdk\aemarch2021sdk-win\aftereffectssdk\examples\effect\sdk_invert_procamp\sdk_invert_procamp.cpp(296): error C2220: warning treated as error - no 'object' file generated

1>e:\tl-18\sdk\aemarch2021sdk-win\aftereffectssdk\examples\effect\sdk_invert_procamp\sdk_invert_procamp.cpp(296): warning C4700: uninitialized local variable 'program' used

1>Done building project "SDK_Invert_ProcAmp.vcxproj" -- FAILED.

========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines