Summary: The PTX target supports the f16 type natively and we alreaqdy have a few LLVM backend tests that support the LLVM-IR. We should be able to enable this for generic use. This is done prior the f16 math functions being written in the GPU libc case.
9 lines
274 B
Plaintext
9 lines
274 B
Plaintext
// RUN: %clang_cc1 -fsyntax-only -triple x86_64 -aux-triple amdgcn -verify %s
|
|
// RUN: %clang_cc1 -fsyntax-only -triple x86_64 -aux-triple nvptx64 -verify %s
|
|
// expected-no-diagnostics
|
|
#include "Inputs/cuda.h"
|
|
|
|
__device__ void f(_Float16 x);
|
|
|
|
__device__ _Float16 x = 1.0f16;
|