강의

멘토링

커뮤니티

Inflearn Community Q&A

mycampground0017002's profile image
mycampground0017002

asked

CUDA Programming (1) - C/C++/GPU Parallel Computing - CUDA Kernel kernel

error macro program - Example of using error handling macros

에러처리 매크로에서!!

Resolved

Written on

·

450

0

에러처리 매크로에서 exit을 하게되면

이전에

디바이스나 호스트에서 동적할당했던 자원을 해제해주는건가요?? 아니면 메모리해제를 추가적으로 구현해야하나요??

cudac++C++cgpu병렬-처리병렬-처리

Answer 1

2

안녕하세요.

일반적인 경우, OS 가 제공하는 exit 함수는 resource 를 모두 반환하게 설정되어 있고, CUDA 프로그램에서도 CUDA 내의 resource도 모두 반환합니다.

감사합니다. ~

mycampground0017002's profile image
mycampground0017002

asked

Ask a question