cancel
Showing results for 
Search instead for 
Did you mean: 

OpenCL

chrisharrington
Journeyman III

cmake error with AMD APP opencl

Hi,

Output I get is below. It's not finding the fxc.exe compiler. What's the correct resolution to this?

-- The C compiler identification is MSVC 17.0.60610.1

-- The CXX compiler identification is MSVC 17.0.60610.1

-- Check for working C compiler using: Visual Studio 11 Win64

-- Check for working C compiler using: Visual Studio 11 Win64 -- works

-- Detecting C compiler ABI info

-- Detecting C compiler ABI info - done

-- Check for working CXX compiler using: Visual Studio 11 Win64

-- Check for working CXX compiler using: Visual Studio 11 Win64 -- works

-- Detecting CXX compiler ABI info

-- Detecting CXX compiler ABI info - done

CMake Error at cl/SimpleDX10/CMakeLists.txt:150 (message):

  Cannot find fx compiler!

CMake Error at cl/SimpleDX11/CMakeLists.txt:149 (message):

  Cannot find fx compiler!.

-- Configuring incomplete, errors occurred!

See also "C:/Users/chris/CMakeFiles/CMakeOutput.log".

Tags (4)
0 Kudos
Reply
7 Replies
chrisharrington
Journeyman III

Re: cmake error with AMD APP opencl

My fix was to change he CMakeList.txt files to have

# Find FX compiler

    if(BITNESS EQUAL 64)

#        set(CMAKE_PROGRAM_PATH $ENV{DXSDK_DIR}/Utilities/bin/x64/)

        set(CMAKE_PROGRAM_PATH "$ENV{ProgramFiles(x86)}/Windows Kits/8.0/bin/x64/")

    else()

#        set(CMAKE_PROGRAM_PATH  $ENV{DXSDK_DIR}/Utilities/bin/x86/)

        set(CMAKE_PROGRAM_PATH "$ENV{ProgramFiles(x86)}/Windows Kits/8.0/bin/x86/")

    endif()

Also, the documentation fileAMD_APP_Getting_Started_Guide.pdf has an error. It shows

   cmake.exe -G "Visual Studio 11 Win 64"

which should be

  cmake.exe -G "Visual Studio 11 Win64"

0 Kudos
Reply
chrisharrington
Journeyman III

Re: cmake error with AMD APP opencl

after cmake ran I ran msbuild

When I run BasicDebug.exe I get error

"Error: Getting platforms"

This was an update to AMD APP 2.8. I had uninstalled 2.8 and rebooted before installing 2.9. Does 2.9 require an updated

Catalyst driver? If not, what else should I check?

Thanks

0 Kudos
Reply
chrisharrington
Journeyman III

Re: cmake error with AMD APP opencl

"GPU Caps Viewer" reports 0 for "Number of CL platforms" so I assume is an issue with drivers. My card is a FirePro V5900.

0 Kudos
Reply
chrisharrington
Journeyman III

Re: cmake error with AMD APP opencl

After reinstalling AMD FirePro™ and FireMV™ Unified Driver, "GPU Caps Viewer" is reporting 1 OpenCL platform. And the samples now run.

0 Kudos
Reply
himanshu_gautam
Grandmaster

Re: cmake error with AMD APP opencl

Thanks for your feedback.

It will be helpful, if you can tell, which driver the APP SDK 2.9 was not working? And After installing what version, the samples are now building fine.

Regarding fxc.exe, I assume you need to install Microsoft DirectX for building SimpleDX and related samples. The variable DXSDK_DIR should be created while DX installation. So from curiosity, do you have directx installed? Or is there a fxc.exe that comes with Window by default?

0 Kudos
Reply
chrisharrington
Journeyman III

Re: cmake error with AMD APP opencl

Hi,

Previously I had 12.104.2-130529a-162794E-Retail. The version I installed was what was current yesterday. The file was 13.152.4-whql-x32x64-163380.exe

As for fxc.exe, you can see the change I made to the cmake fiel

$ENV{ProgramFiles(x86)}/Windows Kits/8.0/bin/x64/"

My understanding is that this gets installed with VS2012.  So I recommend that AMD update AMD_APP_Getting_Started_Guide.pdf

a) fix this:

   cmake.exe -G "Visual Studio 11 Win 64"

which should be

  cmake.exe -G "Visual Studio 11 Win64"

b) check if DirectX SDK really needs to be installed

0 Kudos
Reply
himanshu_gautam
Grandmaster

Re: cmake error with AMD APP opencl


Thanks for your feedback .

Will inform to the appropriate team and make changes.

Thanks once again.

0 Kudos
Reply