Skip to content

Commit

Permalink
Remove annoying target-features for now
Browse files Browse the repository at this point in the history
  • Loading branch information
jpsamaroo committed Feb 4, 2021
1 parent a83bca6 commit 09a1689
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 09a1689

Please sign in to comment.