CUDA
-
CUDA를 이용한 병렬 프로그래밍 (1)카테고리 없음 2023. 12. 28. 22:47
CUDA? a parallel computing platform and application programming interface(API), GPGPU CUDA는 C, C++, Python 등과 같은 언어에서 GPU로 연산을 할 수 있게 해주는 일종의 Code Extension이다. GPGPU? 일반적으로 GPU에서 컴퓨터 그래픽스 관련 작업만 처리했지만 CPU에서 주로 처리했던 응용 프로그램의 계산에 사용하는 기술 Example: Hello World #include __global__ void hello_world(void) { printf("Hello World\n"); } int main (void) { hello_world(); cudaDeviceReset(); return 0; } __glo..