<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - Building offloading app is extremely slow"
href="https://bugs.llvm.org/show_bug.cgi?id=44407">44407</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Building offloading app is extremely slow
</td>
</tr>
<tr>
<th>Product</th>
<td>OpenMP
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Other
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>release blocker
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>Runtime Library
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>itaru.kitayama@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>Building a simple offloading app is extremely slow:
$ cat mini.cpp
#include <stdio.h>
int main() {
int *a[100];
*a[0] = 1;
#pragma omp target enter data map(alloc: a[0:100])
#pragma omp target enter data map(to: a[0][0:1])
//#pragma omp target enter data map(to: a[1][0:1])
#pragma omp target parallel for map(to: a[0:100])
for (int i=0;i<10;i++) {
printf("%d\n",*a[0]); // accessing the 2nd element of the array
}
}
$ time clang++ -g -fopenmp -fopenmp-targets=nvptx64 mini.cpp
real 0m11.355s
user 0m2.843s
sys 0m0.149s
while 9.0.0 clang compiles the same code in 4 secs.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>