ROCm / ROCm-CompilerSupport

The compiler support repository provides various Lightning Compiler related services.
47 stars 31 forks source link

Compile with -fPIC #6

Closed stuartarchibald closed 1 year ago

stuartarchibald commented 5 years ago

Following on from: #4

I am trying to do the following:

Thanks.

scott-linder commented 5 years ago

Are the actions you mention the only ones performed? The AMD_COMGR_ACTION_ASSEMBLE_SOURCE_TO_RELOCATABLE action operates on ISA-level assembly text (e.g. .S files) not on LLVM IR/BC. This is related to #7; "source" is not very well defined in the documentation, but it does not include LLVM IR.

If you are trying to create a relocatable from LLVM BC sources, you will want to use AMD_COMGR_ACTION_CODEGEN_BC_TO_RELOCATABLE.

lamb-j commented 1 year ago

Should be fixed by updating Comgr actions used. Let me know if you still have any issues with this!