Skip to content

Commit

Permalink
Merge pull request #95 from JuliaGPU/jps/rm-fn-attrs
Browse files Browse the repository at this point in the history
Remove annoying target-features for now
  • Loading branch information
jpsamaroo authored Feb 4, 2021
2 parents 07653f9 + 09a1689 commit 1d486f7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/device/runtime.jl
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,10 @@ function load_device_libs(dev_isa, ctx)
name, ext = splitext(file)
file_path = joinpath(device_libs_path, file)
lib = parse(LLVM.Module, read(file_path), ctx)
for f in LLVM.functions(lib)
attrs = function_attributes(f)
delete!(attrs, StringAttribute("target-features"))
end
push!(device_libs, lib)
end

Expand Down

0 comments on commit 1d486f7

Please sign in to comment.