• Login
  • Register
  • Dolphin Forums
  • Home
  • FAQ
  • Download
  • Wiki
  • Code


Dolphin, the GameCube and Wii emulator - Forums › Dolphin Emulator Discussion and Support › Development Discussion v
« Previous 1 ... 49 50 51 52 53 ... 117 Next »

cmakelist changes for opencl on linux
View New Posts | View Today's Posts

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Thread Modes
cmakelist changes for opencl on linux
12-21-2012, 09:00 AM
#11
algarues Offline
Junior Member
**
Posts: 20
Threads: 6
Joined: Mar 2009
(12-21-2012, 02:55 AM)Shonumi Wrote:
(12-21-2012, 02:00 AM)algarues Wrote: anyway whether i select or not the opencl option in the video config nothing changes at the level of emulation speed

The OpenCL texture decoder is actually slower than the SSE2 optimized one, or something like that. IIRC, it could run better if someone decided to code it to use a more recent version of OpenCL. You're not really going to see any benefit in using OpenCL right now.

(12-21-2012, 02:00 AM)algarues Wrote: e.g. ztp hack does not change any of the emulation speed in hyrule fields (GC version)

I am trying to understand whether any of this is compilation dependent

That's probably because your system is running Hyrule Field as best as it currently can. Though, that's hard to say for sure, since we can't see what kind of hardware you're running (unless you post it). In any case, the ZTP hack is part of Dolphin's code; as long as you don't remove the related code, it gets compiled.
I compiled Dolphin on ubuntu precise in order to make it use the latest OpenCL libraries installed in the system

briefly:

I installed the opencl headers and cuda toolkit and configured the linker

I then changed CMakeLists.txt this way

Code:
if(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
    find_library(CL OpenCL)
    set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,-lOpenCL")
else()
    include_directories(Externals/CLRun/include)
    add_subdirectory(Externals/CLRun)
endif()

Then after giving cmake ..
this new line appears in CMakeCache.txt

Code:
//Path to a library.
CL:FILEPATH=/usr/lib/libOpenCL.so

If CMakeLists.txt is left in the default state the line above does not appear.

Then I downloaded opencl-utils from googlecode and compiled clrun which generates libclrun.so, which has to be copied inside the system libraries

from openclutils I also copied clrun.h into /Source/Core/VideoCommon/Src

then Dolphin can be compiled without errors

in the end activating the OpenCL option does not improve a damn thing

However my graphic card is a 8800 GT, so, not the hottest thing in town.

Would a GPU that support sse3 improve things significantly?
Find
Reply
« Next Oldest | Next Newest »


Messages In This Thread
cmakelist changes for opencl on linux - algarues - 12-18-2012, 08:12 AM
RE: cmakelist changes for opencl on linux - Shonumi - 12-18-2012, 02:49 PM
RE: cmakelist changes for opencl on linux - algarues - 12-18-2012, 06:49 PM
RE: cmakelist changes for opencl on linux - neobrain - 12-19-2012, 12:19 AM
RE: cmakelist changes for opencl on linux - algarues - 12-19-2012, 06:34 AM
RE: cmakelist changes for opencl on linux - neobrain - 12-19-2012, 06:46 AM
RE: cmakelist changes for opencl on linux - algarues - 12-20-2012, 10:50 AM
RE: cmakelist changes for opencl on linux - neobrain - 12-20-2012, 06:36 PM
RE: cmakelist changes for opencl on linux - algarues - 12-21-2012, 02:00 AM
RE: cmakelist changes for opencl on linux - Shonumi - 12-21-2012, 02:55 AM
RE: cmakelist changes for opencl on linux - algarues - 12-21-2012, 09:00 AM
RE: cmakelist changes for opencl on linux - Shonumi - 12-21-2012, 04:01 PM
RE: cmakelist changes for opencl on linux - delroth - 12-21-2012, 04:31 PM
RE: cmakelist changes for opencl on linux - algarues - 12-21-2012, 09:17 PM
RE: cmakelist changes for opencl on linux - delroth - 12-22-2012, 12:00 AM

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:


Users browsing this thread: 1 Guest(s)



Powered By MyBB | Theme by Fragma

Linear Mode
Threaded Mode