From 09a16893b7e0c6448361c45cef5ee8820e0d51ef Mon Sep 17 00:00:00 2001 From: Julian P Samaroo Date: Thu, 4 Feb 2021 17:09:23 -0600 Subject: [PATCH] Remove annoying target-features for now --- src/device/runtime.jl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/device/runtime.jl b/src/device/runtime.jl index 10e042b1f..857bf97f0 100644 --- a/src/device/runtime.jl +++ b/src/device/runtime.jl @@ -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