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>
This commit is contained in:
2 file changed
+2
-2
No files matched your search
@@ -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)};
|
||||
|
||||
|
||||
Reference in new issue
Block a user