Skip to content

Commit

Permalink
Change device type to GPU
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrii-artuhov committed Sep 22, 2024
1 parent f1e7ff8 commit 6b581a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ int main() {
// (если в списке устройств есть хоть одна видеокарта - выберите ее, если нету - выбирайте процессор)
cl_platform_id platform;
cl_device_id device;
selectAvailableDevice(CL_DEVICE_TYPE_CPU, platform, device);
selectAvailableDevice(CL_DEVICE_TYPE_GPU, platform, device);

// TODO 2 Создайте контекст с выбранным устройством
// См. документацию https://www.khronos.org/registry/OpenCL/sdk/1.2/docs/man/xhtml/ -> OpenCL Runtime -> Contexts -> clCreateContext
Expand Down

0 comments on commit 6b581a1

Please sign in to comment.