mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-14 15:19:33 +00:00
Fix code sample in NVPTX examples: now it compiles to PTX and runs as expected.
llvm-svn: 197498
This commit is contained in:
parent
ea2c7b6742
commit
b9c2cb9c36
@ -839,7 +839,7 @@ Libdevice provides an ``__nv_powf`` function that we will use.
|
||||
%valB = load float addrspace(1)* %ptrB, align 4
|
||||
|
||||
; Compute C = pow(A, B)
|
||||
%valC = call float @__nv_exp2f(float %valA, float %valB)
|
||||
%valC = call float @__nv_powf(float %valA, float %valB)
|
||||
|
||||
; Store back to C
|
||||
store float %valC, float addrspace(1)* %ptrC, align 4
|
||||
@ -850,7 +850,7 @@ Libdevice provides an ``__nv_powf`` function that we will use.
|
||||
!nvvm.annotations = !{!0}
|
||||
!0 = metadata !{void (float addrspace(1)*,
|
||||
float addrspace(1)*,
|
||||
float addrspace(1)*)* @kernel, metadata !"kernel", i32 1}%
|
||||
float addrspace(1)*)* @kernel, metadata !"kernel", i32 1}
|
||||
|
||||
|
||||
To compile this kernel, we perform the following steps:
|
||||
|
Loading…
Reference in New Issue
Block a user