Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

-Wb,-print-after-all doesn't work if AMD_OCL_IN_PROCESS=0 #59

Open
searlmc1 opened this issue Jan 23, 2018 · 0 comments
Open

-Wb,-print-after-all doesn't work if AMD_OCL_IN_PROCESS=0 #59

searlmc1 opened this issue Jan 23, 2018 · 0 comments
Assignees
Labels

Comments

@searlmc1
Copy link
Contributor

If using AMD_OCL_IN_PROCESS=0, I don't see the output from the compiler (e.g., -Wb,-print-after-all). Evgeniy looked into it and agreed that something is amiss.

Using an internal OpenCL build

try to output IR after every pass

$ echoBOA
AMD_OCL_BUILD_OPTIONS_APPEND="-Wb,-print-after-all -save-temps-all"

try with AMD_OCL_IN_PROCESS=0; no IR

$ export AMD_OCL_IN_PROCESS=0
$ ./a.out
clCreateCommandQueue..clCreateProgramWithSource..clBuildProgram..clSetKernelArg(s)..clEnqueueNDRangeKernel..clFinish..clEnqueueReadBuffer..clFinish..done.
sum of initial c = 154.0970916748046875
sum of final c gpu = 132.538177490234375
sum of final on cpu = 20.899591445922851562
(cpu - gpu )/cpu = -111.638588
elapsed seconds : 0.004275858868

try again with AMD_OCL_IN_PROCESS=1; lots of IR

$ export AMD_OCL_IN_PROCESS=1
$ ./a.out 2>&1 | more
clCreateCommandQueue..clCreateProgramWithSource..clBuildProgram..*** IR Dump After Convert OpenCL 1.2 builtins to 2.0 builtins ***; ModuleID =
'/tmp/AMD_23813_19/t_23813_21.cl'
source_filename = "/tmp/AMD_23813_19/t_23813_21.cl"
target datalayout = "e-p:64:64-p1:64:64-p2:64:64-p3:32:32-p4:32:32-p5:32:32-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-v512:
512-v1024:1024-v2048:2048-n32:64-A5"
target triple = "amdgcn-amd-amdhsa-amdgizcl"

@emankov emankov self-assigned this Jan 23, 2018
@emankov emankov added the bug label Jan 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants