diff --git a/Samples/5_Domain_Specific/simpleVulkan/VulkanBaseApp.h b/Samples/5_Domain_Specific/simpleVulkan/VulkanBaseApp.h index efb5fac4..7354881d 100644 --- a/Samples/5_Domain_Specific/simpleVulkan/VulkanBaseApp.h +++ b/Samples/5_Domain_Specific/simpleVulkan/VulkanBaseApp.h @@ -34,8 +34,10 @@ #include #ifdef _WIN64 #define NOMINMAX -#include +// Add windows.h to the include path #include +// Add vulkan_win32.h to the include path +#include #endif /* _WIN64 */ /* remove _VK_TIMELINE_SEMAPHORE to use binary semaphores */ diff --git a/Samples/5_Domain_Specific/simpleVulkanMMAP/VulkanBaseApp.h b/Samples/5_Domain_Specific/simpleVulkanMMAP/VulkanBaseApp.h index 814e321e..4f4425bd 100644 --- a/Samples/5_Domain_Specific/simpleVulkanMMAP/VulkanBaseApp.h +++ b/Samples/5_Domain_Specific/simpleVulkanMMAP/VulkanBaseApp.h @@ -34,8 +34,10 @@ #include #ifdef _WIN64 #define NOMINMAX -#include +// Add windows.h to the include path firstly as dependency for other Windows headers #include +// Add other Windows headers +#include #endif /* _WIN64 */ struct GLFWwindow; diff --git a/Samples/5_Domain_Specific/vulkanImageCUDA/vulkanImageCUDA.cu b/Samples/5_Domain_Specific/vulkanImageCUDA/vulkanImageCUDA.cu index f782bbb9..b94487fc 100644 --- a/Samples/5_Domain_Specific/vulkanImageCUDA/vulkanImageCUDA.cu +++ b/Samples/5_Domain_Specific/vulkanImageCUDA/vulkanImageCUDA.cu @@ -27,10 +27,12 @@ #define GLFW_INCLUDE_VULKAN #ifdef _WIN64 +// Add windows.h to the include path firstly as dependency for other Windows headers +#include +// Add other Windows headers #include #include #include -#include #define _USE_MATH_DEFINES #endif diff --git a/Samples/6_Performance/transpose/transpose.cu b/Samples/6_Performance/transpose/transpose.cu index 8a1d8bec..09c7582e 100644 --- a/Samples/6_Performance/transpose/transpose.cu +++ b/Samples/6_Performance/transpose/transpose.cu @@ -597,17 +597,16 @@ int main(int argc, char **argv) 1, TILE_DIM * BLOCK_ROWS); - // Reset d_odata to zero before starting the next loop iteration to avoid - // carrying over results from previous kernels. Without this reset, residual - // data from a prior kernel (e.g., 'copy') could make a subsequent - // kernel (e.g., 'copySharedMem') appear correct even if it performs no work, + // Reset d_odata to zero before starting the next loop iteration to avoid + // carrying over results from previous kernels. Without this reset, residual + // data from a prior kernel (e.g., 'copy') could make a subsequent + // kernel (e.g., 'copySharedMem') appear correct even if it performs no work, // leading to false positives in compareData. for (int i = 0; i < (size_x * size_y); ++i) { h_odata[i] = 0; } // copy host data to device - checkCudaErrors( - cudaMemcpy(d_odata, h_odata, mem_size, cudaMemcpyHostToDevice)); + checkCudaErrors(cudaMemcpy(d_odata, h_odata, mem_size, cudaMemcpyHostToDevice)); } // cleanup