Issue 136199
Summary Missing `strlen` in libc for offloaded target nvptx64
Labels libc
Assignees
Reporter KaruroChori
    This code https://godbolt.org/z/5oqE4Es6q fails while linking as `strlen` cannot be resolved. Still it should be a basic libc function. 

```cpp
#include <string.h>
#include <cstdio>
int main(int argc, const char* argv[]){
 char str[256];
    #pragma omp target map(tofrom:str)
    {
 printf("%ld\n",strlen(str));
    }
    return 0;
}
```

Is there any good reason why strlen is not available?
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to