Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • gpgpu/parallel_worlds
  • plustig/parallel_worlds
  • peter.faber/parallel-worlds-cuda
  • gfx/parallel_worlds
  • ai01031/parallel_worlds
5 results
Show changes
Der Buildvorgang wurde am 08.11.2014 18:02:18 gestartet.
1>Projekt "C:\Users\Tanja\Desktop\ct_projekt\8\parallelwelten_3\build\ZERO_CHECK.vcxproj" auf Knoten "2", Build Ziel(e).
1>CustomBuild:
Checking Build System
CMake does not need to re-run because C:/Users/Tanja/Desktop/ct_projekt/8/parallelwelten_3/build/CMakeFiles/generate.stamp is up-to-date.
1>Die Erstellung des Projekts "C:\Users\Tanja\Desktop\ct_projekt\8\parallelwelten_3\build\ZERO_CHECK.vcxproj" ist abgeschlossen, Build Ziel(e).
Build erfolgreich.
Verstrichene Zeit 00:00:04.20
#TargetFrameworkVersion=v4.0:PlatformToolSet=v120:EnableManagedIncrementalBuild=false:VCToolArchitecture=Native32Bit
Debug|x64|C:\Users\Tanja\Desktop\ct_projekt\8\parallelwelten_3\build\|
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
cmake_minimum_required( VERSION 3.1 )
cmake_minimum_required( VERSION 3.12 )
project( parallel_worlds_3 )
set( EXECUTABLE ${PROJECT_NAME} )
if( MSVC )
message( "MSVC: adding compiler flags" )
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /arch:SSE2 /I.")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /Z7 /arch:SSE2 /I.")
endif( MSVC )
if( UNIX )
message( "UNIX-like system: adding compiler flags" )
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -msse2 -I.")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -msse2 -I.")
endif( UNIX )
find_package( OpenCV REQUIRED )
include_directories( ${OpenCV_INCLUDE_DIRS} )
# THX: https://stackoverflow.com/questions/67641589/how-can-i-tell-cmake-3-9-i-want-to-use-nvidias-opencl-library
find_package( CUDA )
set(OpenCL_ROOT "${CUDA_TOOLKIT_ROOT_DIR}")
find_package( OpenCL REQUIRED )
include_directories( ${OpenCL_INCLUDE_DIRS} )
......
......@@ -82,7 +82,7 @@ private:
}
void init(cl_device_type requestedDevice=CL_DEVICE_TYPE_GPU | CL_DEVICE_TYPE_ACCELERATOR) {
devices = findDevices(CL_DEVICE_TYPE_GPU | CL_DEVICE_TYPE_ACCELERATOR);
devices = findDevices(requestedDevice);
// In order to execute a kernel (OpenCL program), it is necessary to first define
// some hardware presentations:
// 1. a context that defines the devices (and thus the usable binary code)
......