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>
Cette révision appartient à :
a créé et GitHub a révisé 2025-03-07 14:43:29 -06:00
1 Parent d74ea0876f
révision cc18b95c7f
2 fichiers modifiés
+2 -2

Aucun fichier ne correspond à votre recherche

+1 -1
Voir le fichier
@@ -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)};