ROCm / rocprofiler-compute

Advanced Profiling and Analytics for AMD Hardware
https://rocm.docs.amd.com/projects/omniperf/en/latest/
MIT License
135 stars 49 forks source link

small vcopy fix #305

Closed koomie closed 7 months ago

koomie commented 7 months ago

Updating vcopy src to avoid compilation warnings with ROCm 6.x like the following:

vcopy.cpp:173:5: warning: ignoring return value of function declared with 'nodiscard' attribute [-Wunused-result]
    hipDeviceSynchronize();
    ^~~~~~~~~~~~~~~~~~~~
vcopy.cpp:178:7: warning: ignoring return value of function declared with 'nodiscard' attribute [-Wunused-result]
      hipDeviceSynchronize();
      ^~~~~~~~~~~~~~~~~~~~
2 warnings generated when compiling for gfx90a.
vcopy.cpp:173:5: warning: ignoring return value of function declared with 'nodiscard' attribute [-Wunused-result]
    hipDeviceSynchronize();
    ^~~~~~~~~~~~~~~~~~~~
vcopy.cpp:178:7: warning: ignoring return value of function declared with 'nodiscard' attribute [-Wunused-result]
      hipDeviceSynchronize();
      ^~~~~~~~~~~~~~~~~~~~