-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Task01 Роман Гостило HSE #60
Conversation
src/main.cpp
Outdated
@@ -145,7 +145,7 @@ int main() { | |||
return err; | |||
} | |||
|
|||
cl_mem cs_buf = clCreateBuffer(ctx, CL_MEM_WRITE_ONLY | CL_MEM_USE_HOST_PTR, sizeof(float) * n, cs.data(), &err); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
а почему убрали USE_HOST_PTR?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
мы же хотим выгрузить только после выполнения кёрнела всё из VRAM в RAM, поэтому я не нашел смысла в USE_HOST_PTR
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
В случае когда кернел исполняется на процессоре или на встройке, vram и ram это одно и то же, и имеет смысл лишний раз не копировать
Все хорошо, задача зачтена, 5/5 баллов 👍 |
Локальный вывод
Вывод Github CI