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>
[ROCm/rocprofiler-sdk commit: cc18b95c7f]
This commit is contained in:
committed by
GitHub
parent
27d0bc087c
commit
6db4554b89
@@ -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)};
|
||||
|
||||
|
||||
@@ -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)};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user