rocprofv3-test-trace-hip-in-libraries-validate failed in PSDB (#248)

* capture streams by reference

* Fix sync_stream in tests/bin/vector-operations

---------

Co-authored-by: Jonathan R. Madsen <jonathanrmadsen@gmail.com>
Co-authored-by: Bhardwaj, Gopesh <Gopesh.Bhardwaj@amd.com>
Этот коммит содержится в:
Kandula, Venkateshwar reddy
2025-03-07 14:43:29 -06:00
коммит произвёл GitHub
родитель d74ea0876f
Коммит cc18b95c7f
2 изменённых файлов: 2 добавлений и 2 удалений
+1 -1
Просмотреть файл
@@ -152,7 +152,7 @@ run(int NUM_QUEUE, int DEVICE_ID)
std::vector<hipStream_t> streams(NUM_QUEUE);
auto sync_stream = [NUM_QUEUE, streams](int q) {
auto sync_stream = [NUM_QUEUE, &streams](int q) {
if(q < 0 || q >= NUM_QUEUE)
throw std::runtime_error{std::string{"invalid stream id: "} + std::to_string(q)};
+1 -1
Просмотреть файл
@@ -156,7 +156,7 @@ run_vector_ops_impl(int num_queue, int device_id)
std::vector<hipStream_t> streams(num_queue);
auto sync_stream = [num_queue, streams](int q) {
auto sync_stream = [num_queue, &streams](int q) {
if(q < 0 || q >= num_queue)
throw std::runtime_error{std::string{"invalid stream id: "} + std::to_string(q)};