Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ int main() {
for(size_t t = 0; t < 5; t++)
k[t] = -t;

/// CHECK: data_submit_async: {{.*}} 0 ({{.*}} 4, {{.*}})
/// CHECK: data_submit_async: {{.*}} 0 ({{.*}} 4, {{.*}})
/// CHECK: data_submit_async: {{.*}} 0 ({{.*}} 40, {{.*}})
/// CHECK: data_submit_async: {{.*}} 0 ({{.*}} 20, {{.*}})
/// CHECK-DAG: data_submit_async: {{.*}} 0 ({{.*}} 4, {{.*}})
/// CHECK-DAG: data_submit_async: {{.*}} 0 ({{.*}} 4, {{.*}})
/// CHECK-DAG: data_submit_async: {{.*}} 0 ({{.*}} 40, {{.*}})
/// CHECK-DAG: data_submit_async: {{.*}} 0 ({{.*}} 20, {{.*}})
#pragma omp target update to(z[:10])

#pragma omp target map(tofrom:k[:5]) map(always, tofrom:x) map(tofrom:y)
Expand All @@ -30,10 +30,13 @@ int main() {
z[t]++;
printf("Device pointer for k = %p, k[3] = %d\n", k, k[3]);
}
/// CHECK: data_retrieve_async: {{.*}} 0 ({{.*}} 20, {{.*}})
/// CHECK: data_retrieve_async: {{.*}} 0 ({{.*}} 40, {{.*}})
/// CHECK: data_retrieve_async: {{.*}} 0 ({{.*}} 4, {{.*}})
/// CHECK: data_retrieve_async: {{.*}} 0 ({{.*}} 4, {{.*}})
// Note separate the two DAGs to ensure that retrieving is happening after
// submitting.
/// CHECK: launch_kernel:
/// CHECK-DAG: data_retrieve_async: {{.*}} 0 ({{.*}} 20, {{.*}})
/// CHECK-DAG: data_retrieve_async: {{.*}} 0 ({{.*}} 40, {{.*}})
/// CHECK-DAG: data_retrieve_async: {{.*}} 0 ({{.*}} 4, {{.*}})
/// CHECK-DAG: data_retrieve_async: {{.*}} 0 ({{.*}} 4, {{.*}})
#pragma omp target update from(z[:10])

// Note: when the output is redirected rather than printed at the console,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ int main() {
for(size_t t = 0; t < 5; t++)
k[t] = -t;

/// CHECK: data_submit_async: {{.*}} 0 ({{.*}} 4, {{.*}})
/// CHECK: data_submit_async: {{.*}} 0 ({{.*}} 4, {{.*}})
/// CHECK: data_submit_async: {{.*}} 0 ({{.*}} 40, {{.*}})
/// CHECK: data_submit_async: {{.*}} 0 ({{.*}} 20, {{.*}})
/// CHECK-DAG: data_submit_async: {{.*}} 0 ({{.*}} 4, {{.*}})
/// CHECK-DAG: data_submit_async: {{.*}} 0 ({{.*}} 4, {{.*}})
/// CHECK-DAG: data_submit_async: {{.*}} 0 ({{.*}} 40, {{.*}})
/// CHECK-DAG: data_submit_async: {{.*}} 0 ({{.*}} 20, {{.*}})
#pragma omp target update to(z[:10])

#pragma omp target map(tofrom:k[:5]) map(always, tofrom:x) map(tofrom:y)
Expand All @@ -30,10 +30,13 @@ int main() {
z[t]++;
printf("Device pointer for k = %p, k[3] = %d\n", k, k[3]);
}
/// CHECK: data_retrieve_async: {{.*}} 0 ({{.*}} 20, {{.*}})
/// CHECK: data_retrieve_async: {{.*}} 0 ({{.*}} 40, {{.*}})
/// CHECK: data_retrieve_async: {{.*}} 0 ({{.*}} 4, {{.*}})
/// CHECK: data_retrieve_async: {{.*}} 0 ({{.*}} 4, {{.*}})
// Note separate the two DAGs to ensure that retrieving is happening after
// submitting.
/// CHECK: launch_kernel:
/// CHECK-DAG: data_retrieve_async: {{.*}} 0 ({{.*}} 20, {{.*}})
/// CHECK-DAG: data_retrieve_async: {{.*}} 0 ({{.*}} 40, {{.*}})
/// CHECK-DAG: data_retrieve_async: {{.*}} 0 ({{.*}} 4, {{.*}})
/// CHECK-DAG: data_retrieve_async: {{.*}} 0 ({{.*}} 4, {{.*}})
#pragma omp target update from(z[:10])

// Note: when the output is redirected rather than printed at the console,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ int main() {
for(size_t t = 0; t < 5; t++)
k[t] = -t;

/// CHECK: data_submit_async: {{.*}} 0 ({{.*}} 4, {{.*}})
/// CHECK: data_submit_async: {{.*}} 0 ({{.*}} 4, {{.*}})
/// CHECK: data_submit_async: {{.*}} 0 ({{.*}} 40, {{.*}})
/// CHECK: data_submit_async: {{.*}} 0 ({{.*}} 20, {{.*}})
/// CHECK-DAG: data_submit_async: {{.*}} 0 ({{.*}} 4, {{.*}})
/// CHECK-DAG: data_submit_async: {{.*}} 0 ({{.*}} 4, {{.*}})
/// CHECK-DAG: data_submit_async: {{.*}} 0 ({{.*}} 40, {{.*}})
/// CHECK-DAG: data_submit_async: {{.*}} 0 ({{.*}} 20, {{.*}})
#pragma omp target update to(z[:10])

#pragma omp target map(tofrom:k[:5]) map(always, tofrom:x) map(tofrom:y)
Expand All @@ -30,10 +30,13 @@ int main() {
z[t]++;
printf("Device pointer for k = %p, k[3] = %d\n", k, k[3]);
}
/// CHECK: data_retrieve_async: {{.*}} 0 ({{.*}} 20, {{.*}})
/// CHECK: data_retrieve_async: {{.*}} 0 ({{.*}} 40, {{.*}})
/// CHECK: data_retrieve_async: {{.*}} 0 ({{.*}} 4, {{.*}})
/// CHECK: data_retrieve_async: {{.*}} 0 ({{.*}} 4, {{.*}})
// Note separate the two DAGs to ensure that retrieving is happening after
// submitting.
/// CHECK: launch_kernel:
/// CHECK-DAG: data_retrieve_async: {{.*}} 0 ({{.*}} 20, {{.*}})
/// CHECK-DAG: data_retrieve_async: {{.*}} 0 ({{.*}} 40, {{.*}})
/// CHECK-DAG: data_retrieve_async: {{.*}} 0 ({{.*}} 4, {{.*}})
/// CHECK-DAG: data_retrieve_async: {{.*}} 0 ({{.*}} 4, {{.*}})
#pragma omp target update from(z[:10])

// Note: when the output is redirected rather than printed at the console,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ int main() {
for(size_t t = 0; t < 5; t++)
k[t] = -t;

/// CHECK: data_submit_async: {{.*}} 0 ({{.*}} 4, {{.*}})
/// CHECK: data_submit_async: {{.*}} 0 ({{.*}} 4, {{.*}})
/// CHECK: data_submit_async: {{.*}} 0 ({{.*}} 40, {{.*}})
/// CHECK: data_submit_async: {{.*}} 0 ({{.*}} 20, {{.*}})
/// CHECK-DAG: data_submit_async: {{.*}} 0 ({{.*}} 4, {{.*}})
/// CHECK-DAG: data_submit_async: {{.*}} 0 ({{.*}} 4, {{.*}})
/// CHECK-DAG: data_submit_async: {{.*}} 0 ({{.*}} 40, {{.*}})
/// CHECK-DAG: data_submit_async: {{.*}} 0 ({{.*}} 20, {{.*}})
#pragma omp target update to(z[:10])

#pragma omp target map(to:k[:5]) map(always, tofrom:x) map(tofrom:y)
Expand All @@ -32,9 +32,12 @@ int main() {
printf("Device pointer for k = %p, k[3] = %d\n", k, k[3]);
}
#pragma omp target update from(z[:10])
/// CHECK: data_retrieve_async: {{.*}} 0 ({{.*}} 40, {{.*}})
/// CHECK: data_retrieve_async: {{.*}} 0 ({{.*}} 4, {{.*}})
/// CHECK: data_retrieve_async: {{.*}} 0 ({{.*}} 4, {{.*}})
// Note separate the two DAGs to ensure that retrieving is happening after
// submitting.
/// CHECK: launch_kernel:
/// CHECK-DAG: data_retrieve_async: {{.*}} 0 ({{.*}} 40, {{.*}})
/// CHECK-DAG: data_retrieve_async: {{.*}} 0 ({{.*}} 4, {{.*}})
/// CHECK-DAG: data_retrieve_async: {{.*}} 0 ({{.*}} 4, {{.*}})

// Note: when the output is redirected rather than printed at the console,
// the printf'd strings are printed AFTER all the OpenMP runtime library
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ int main() {
for(size_t t = 0; t < 5; t++)
k[t] = -t;

/// CHECK: data_submit_async: {{.*}} 0 ({{.*}} 4, {{.*}})
/// CHECK: data_submit_async: {{.*}} 0 ({{.*}} 4, {{.*}})
/// CHECK: data_submit_async: {{.*}} 0 ({{.*}} 40, {{.*}})
/// CHECK: data_submit_async: {{.*}} 0 ({{.*}} 20, {{.*}})
/// CHECK-DAG: data_submit_async: {{.*}} 0 ({{.*}} 4, {{.*}})
/// CHECK-DAG: data_submit_async: {{.*}} 0 ({{.*}} 4, {{.*}})
/// CHECK-DAG: data_submit_async: {{.*}} 0 ({{.*}} 40, {{.*}})
/// CHECK-DAG: data_submit_async: {{.*}} 0 ({{.*}} 20, {{.*}})
#pragma omp target update to(z[:10])

#pragma omp target map(to:k[:5]) map(always, tofrom:x) map(tofrom:y)
Expand All @@ -31,9 +31,12 @@ int main() {
printf("Device pointer for k = %p, k[3] = %d\n", k, k[3]);
}
#pragma omp target update from(z[:10])
/// CHECK: data_retrieve_async: {{.*}} 0 ({{.*}} 40, {{.*}})
/// CHECK: data_retrieve_async: {{.*}} 0 ({{.*}} 4, {{.*}})
/// CHECK: data_retrieve_async: {{.*}} 0 ({{.*}} 4, {{.*}})
// Note separate the two DAGs to ensure that retrieving is happening after
// submitting.
/// CHECK: launch_kernel:
/// CHECK-DAG: data_retrieve_async: {{.*}} 0 ({{.*}} 40, {{.*}})
/// CHECK-DAG: data_retrieve_async: {{.*}} 0 ({{.*}} 4, {{.*}})
/// CHECK-DAG: data_retrieve_async: {{.*}} 0 ({{.*}} 4, {{.*}})

// Note: when the output is redirected rather than printed at the console,
// the printf'd strings are printed AFTER all the OpenMP runtime library
Expand Down