Граф коммитов

30 Коммитов

Автор SHA1 Сообщение Дата
Aaron Enye Shi 81a3ea28d5 Workaround HIP-Clang missing libhiprtc.so packaging 2019-05-24 20:46:16 +00:00
Alex Voicu ccfb764a59 Add HIPRTC, glorious ersatz for NVRTC (#1097)
* Add ersatz for NVRTC.

* Fix extraneous paren and use correct namespace.

* Use lowerCamelCase (yuck, yuck) consistently.

* Link against FS when building hiprtc lib.

* Correctly mark Manipulators. Fix dual compile.

* Add unit tests. Extend HIT to accept linker options.

* Make sure the HIPRTC library is installed.

* Better logging. Try to auto-detect the target.

* Stop specifying the target explicitly.

* Add missing flavour of `hipModuleLaunchKernel`.

* Program was already destroyed.

* Don't use `--genco`. Fix mangled name trimming.

* Fix HIPRTC breakage due to upstream noise.

* [dtests] Replace RUN -> TEST in hiprtc tests

Change-Id: Ie499e92dfe4e5c94634b1c2b76cf52d241bcfea3

* [hit] Set HIP_PATH to HIP_ROOT_DIR for all tests

Change-Id: Ib0ad1f99bc71c03e363e055dd508a7a4a210680a
2019-05-16 18:28:54 +05:30
Aaron Enye Shi a3d118eaa8 Revert "Use COMgr to read Kernel Args Metadata (#1006)"
This reverts commit 8a548bf40b.
2019-04-26 16:04:56 -04:00
Aaron Enye Shi 8a548bf40b Use COMgr to read Kernel Args Metadata (#1006)
* Add CMAKE dep to amd_comgr

* Use COMGR for read_kernarg_metadata in COV2

* Do not assume kernargs exist

* Add proper metadata destroy cleanup

* Use a process function for easier destroy

* Remove old read_kernarg_metadata

* Clean up HCC, prints, names

* Use COMGR in CMAKE by default

* Move metadata lookup for keyword values into helper

* Remove C string usage for lookup_keyword_value

* Guard COMGR for non-NVCC path

* Add hip_hcc dependency on comgr package

* Add lifetime to metadata nodes

* Find COMGR config file for amd_comgr target

* Move set_active data earlier
2019-04-16 08:34:39 +05:30
Aaron Enye Shi 817b27d530 Remove libhip_device.a static library
Move remaining function definitions from device_util.cpp to hip_runtime.h header. We can now remove the static library completely as device_util.cpp was the last file part of target hip::hip_device .
2018-10-25 19:52:35 +00:00
Aaron Enye Shi 2142eb4d12 Implement hip_hc.ll into HIP headers
Move all __hip_hc_ir_* functions from hip_hc.ll into HIP header as inline asm. Remove hip_hc.ll and build dependencies from HIP.
2018-06-20 17:39:31 +00:00
Alex Voicu 9c7fbdb597 Remove vestigial inline LLVMIR. 2018-05-24 12:46:14 +01:00
Maneesh Gupta f34f5c8684 Remove libsupc++ dependency from HIP
Change-Id: Ib843f99dfb3057b7c28029250c2449732ea7f17f
2017-11-02 12:29:09 +05:30
Wen-Heng (Jack) Chung 92fb244841 Inital codes to remove x86_64 dependency in HIP source build 2017-10-30 15:19:23 -05:00
Maneesh Gupta 6b768c2f0a hip_hcc package: add libstdc++-static as a rpm dependency
Change-Id: I83a79353492a6be3d788b7c0ce4a8f3aa740d9d9
2017-06-07 15:50:28 +05:30
James Edwards 1b6d08ada0 Fix RPM HIP packages from specifying /opt
Change-Id: Iec3c3b81eef4c8888d425eefc80b12488a8d20a1
2017-04-19 12:35:42 +05:30
Maneesh Gupta 7bb378bd4d Add hip-config.cmake to hip_hcc package
Due to the way hip packages are generated, for the purpose of
packaging hip-targets*.cmake are not generated at build time.
However hip-config*.cmake are generated at build time.
This will be fixed in future.

Change-Id: I5d79bc58a4f7a324ae06457130d8372ffe403830
2017-04-13 10:34:33 +05:30
Maneesh Gupta 0672b19264 packaging script changes for hip_hcc
Change-Id: I06cce6048204315a891e3a12638a3067644cfb43
2017-02-28 12:02:53 +05:30
Maneesh Gupta 14442b3ef7 Update hip_hcc packaging script
Change-Id: I2dc96545c472942bcf2bc8a2e88735f3ba26d1e1
2017-02-09 20:28:28 +05:30
Maneesh Gupta 9b6d1588ba hip_hcc package changes
- updated hip_hcc package creation dependencies
- support build hip_hcc package for HCC-1.0

Change-Id: Idf23e415eff8cb352a8906191c79bd822c7618e7
2016-12-22 15:30:38 +05:30
Maneesh Gupta ef046c7098 Improve shared and static library support
hipcc accepts new parameter -use-staticlib and -use-sharedlib to
control linking behavior. Default is still static library.

Change-Id: I28fb9a939f8177c75abefd8b77d8118a6666d1f4
2016-12-01 15:33:12 +05:30
Maneesh Gupta c0419cc749 Refactor for building HIP as dynamic library
Change-Id: I65a3d9d589c4fdbbdcf1611e5427224253be8260
2016-11-18 14:33:20 +05:30
Maneesh Gupta c2b6eee152 hip_hcc package: install hip_ir.ll to lib folder
Change-Id: Ieaa4ff83597c211f221b4c1b0b93e08ad7c92ea6
2016-10-25 15:42:24 +05:30
Maneesh Gupta feffd829ed Update packaging scripts to handle updated HCC package versioning
Change-Id: Id93267b7cf9fd05e60004cc6c45b5fc7d10b3130
2016-10-17 12:48:05 +05:30
Maneesh Gupta 1329be958a .buildInfo -> .hipInfo & .version -> .hipVersion
Change-Id: I8023f4349621fd81c58615737b7e897649e0f7ca
2016-10-11 11:13:41 +05:30
Maneesh Gupta 366c1dad44 hip_hcc package: set dependency on rocm-profiler only if COMPILE_HIP_ATP_MARKER=1
Change-Id: Ib0424a984546e9f770f280f8559b4a716badcc77
2016-10-09 16:01:47 +05:30
Maneesh Gupta 99299a27cc Fixed typos in packaging script for hip_hcc package
Change-Id: I79237e7364518066585d5c88bd54e3b30f832076
2016-10-07 15:44:59 +05:30
Maneesh Gupta 15519b0603 Update hip_hcc packaging steps
Change-Id: I0ab16d8aef1dd33a971f73b3a6faa067df495d55
2016-10-05 22:58:04 +05:30
Maneesh Gupta 48a6085b6c Add back rocm-profiler as a dependency for hip_hcc package
This reverts commit b2035c98ac.
2016-10-05 22:39:42 +05:30
Maneesh Gupta b2035c98ac hip_hcc rpm package does not depend on rocm-profiler
Change-Id: I291c046371e704ce395781d5de3f6430c0dcba7b
2016-08-03 09:07:58 +05:30
Maneesh Gupta 1bf661223e hip_hcc package now depends on rocm-profiler
Change-Id: I80d1c6048cc18c47c2024efb90368b17139a09ad
2016-07-22 15:45:32 +05:30
Maneesh Gupta e88ff3eae8 Cleanup hip_hcc packaging script
Change-Id: I41168b3135b36263369b97974a2d2646516e8401
2016-07-12 13:08:21 +05:30
Maneesh Gupta 6d2c763b26 dynamically compute HCC version dependency for hip_hcc package
Change-Id: I5eca934826f12ee002416b299fd562db0f60056c
2016-05-09 06:01:33 -04:00
Maneesh Gupta dfea14c5d4 Bump hcc version dependency for packaging 2016-04-16 15:19:32 +05:30
Maneesh Gupta f0e11d9856 Split hip packages into smaller components 2016-04-15 12:13:04 +05:30