91cb98dab6
- Make code object reader use mmap when loading from a file on Linux. - Support computing code object URI for memory either fro the loaded host executables, or from all mmapped files. Define the environment variable HSA_LOADER_ENABLE_MMAP_URI to non 0 to search the mmap files, otherwise only the loaded executables will be seatched. - For mmap search, determine file size and ommit offset and size URI fragment when the code object is the whole file even when specifying a file size explicitly or specifying memory that has been mmaped. - Always return a non-empty code object URI. - When a code object reader is created, complete all fields to ensure it can be used in a multi-threaded manner using only const operations. - Add missing exception handlers in the AMD vendor extentions. - More rigorous checking for errors. Change-Id: I07797b1dc60c5c64245142d77becf9f7c9643395