✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Respecto a este fragmento de código que se ha extraído de una entrega, ¿cuál es la opción correcta?
uint8_t *rgb_image = stbi_load(argv[file_i], &width, &height, &nchannels, 4); // 4 bytes/pixel. width*height pixels.[...]cudaMemcpy(d_rgb_image, rgb_image, width * height * sizeof(uint8_t), cudaMemcpyHostToDevice);[...]