Commit Graph

67 Commits

Author SHA1 Message Date
Tao Sang 963e4cded7 Make samples support cmake
Only cmake can support static lib of hip rt.
Thus samples will support static lib of hip
rt when this is done.

Change-Id: I70e8d06e85084369a035b42c5d1d56287c874ac9


[ROCm/hip-tests commit: 5b8651c825]
2020-09-18 07:37:02 -04:00
Dittakavi Satyanvesh 8aef4b955b enable occupancy sample on HIP-Clang
Change-Id: I236daad743bbbc7f8daa41e8157a4ff73058518b


[ROCm/hip-tests commit: ea913c964a]
2020-05-19 03:08:19 -04:00
Rahul Garg a182a38597 Merge "Remove HIP_MARKER left overs due to HIP PR 2032" into amd-master-next
[ROCm/hip-tests commit: a8f78c4c7e]
2020-05-07 01:36:57 -04:00
Rahul Garg 9c2e15286b Remove HIP_MARKER left overs due to HIP PR 2032
Change-Id: Ieae68dd3b12c92b1d6830619ca4c6ae43c400225


[ROCm/hip-tests commit: 9ac4bb8627]
2020-05-06 20:26:18 -04:00
agodavar 474ae4cb70 SWDEV-233749 Added support for parallel build and link
Change-Id: Id227ea1fe7574612c33a8e6d91fc59a29490a35f


[ROCm/hip-tests commit: 7dda0bb8a0]
2020-05-06 14:54:39 -04:00
agodavar 2e6ce97aa1 find_package(hip) changes for clang
Change-Id: I9dc1be1dd5f9424e26ebcd2961207e1c4467550f


[ROCm/hip-tests commit: 14b060bfd3]
2020-05-01 20:48:32 +00:00
root 4204eab46a Merge master into amd-master-next
Change-Id: I3fc1dc0c860d627053537581e75561e8a7efe327


[ROCm/hip-tests commit: 3c8b7f1e38]
2020-04-26 22:19:37 +00:00
Michael LIAO b38734a50b [vdi] Fix texture reference sample.
- The driver code should not re-define `tex` again as it's already
  defined in the kernel code. Eventually, the driver code should be as
  regular C++ code instad of HIP code.

Change-Id: I8c7cab204b98990619d6e7109b990d7089ea9261


[ROCm/hip-tests commit: 2ab06b307d]
2020-04-23 23:41:56 -04:00
Maneesh Gupta 900fe14ea2 Merge in the rocclr based hip runtime (#2032)
* Merge master-next changes in master (include vdi development in master branch)



[ROCm/hip-tests commit: e46a4e3e48]
2020-04-23 09:12:06 -07:00
Michael LIAO 6174d0f0dd [vdi] Refactor texture/surface reference support.
Change-Id: I8014d82aae7139ef5f95e4b50c4fc6da200dbc9d


[ROCm/hip-tests commit: 8ec28891de]
2020-04-21 11:56:48 -04:00
Evgeny Mankov a6c7b1ca12 [HIP][doc] Update docs due to moving of HIPIFY to a separate repo (#2001)
[ROCm/hip-tests commit: a93ae7cbed]
2020-04-07 14:03:19 +05:30
Rahul Garg e9ffe1fe87 Rename hipDrvOccupancy to hipModuleOccupancy and match CUDA syntax (#1943)
[ROCm/hip-tests commit: 177457e54c]
2020-04-07 14:02:52 +05:30
Rahul Garg a803dde224 Remove deprecated HIP markers (#1876)
[ROCm/hip-tests commit: 409b21017c]
2020-02-28 16:47:15 +05:30
Tao Sang 686aac3878 Temporarily comment out Hcc-specific APIs for CLang compiler
Temporarily comment out Hcc-specific template functions
hipExtLaunchKernelGGL and hipOccupancyMaxPotentialBlockSize for CLang
compiler so that all test cases under hip/samples can be built
successfully for Clang + Hip/Hcc runtime.

Change-Id: Iafc761257be4a7b34eafa6759a01f369570cd6ce


[ROCm/hip-tests commit: 6eabd2e7dd]
2020-02-16 22:26:47 -05:00
Maneesh Gupta ce2db2ba67 Revert "Match Occupancy APIs syntax with CUDA (#1625)" (#1857)
Reverting this for now till we figure out how to avoid the build
breakage.

This reverts commit 884f9f5b84.

[ROCm/hip-tests commit: 3e0af4b4a9]
2020-02-10 10:45:28 +05:30
Rahul Garg 8077fa58b0 [docs] Fix links in cookbook samples (#1824)
[ROCm/hip-tests commit: 9a88f7ae56]
2020-02-04 08:56:31 +05:30
satyanveshd 884f9f5b84 Match Occupancy APIs syntax with CUDA (#1625)
* Match Occupancy APIs syntax with CUDA and fix tests using these APIs


[ROCm/hip-tests commit: acb2ea8618]
2020-01-29 13:05:53 -08:00
Rahul Garg 26924f665e Rename hip/hip_hcc.h to hip/hip_ext.h (#1341)
* Rename hip/hip_hcc.h to hip/hip_ext.h

* Deprecate hip_hcc.h


[ROCm/hip-tests commit: 67e27b3603]
2019-11-07 13:17:10 +05:30
Rahul Garg dd06fef4bc Merge pull request #1515 from ansurya/tex_unbind_issue_fix
Fix undefined ref to hipUnbindTexture for texture types

[ROCm/hip-tests commit: bdeed6c207]
2019-10-30 17:54:15 -07:00
Rahul Garg 2ccd36585d Revert "Fix occupany APIs (#1560)"
This reverts commit 75f4baa12c.


[ROCm/hip-tests commit: 1aa9eab331]
2019-10-29 11:41:08 -07:00
Anusha Godavarthy Surya ce48fed42e merge from master
[ROCm/hip-tests commit: 7cfd70847d]
2019-10-25 15:52:09 +05:30
Rahul Garg ea46097623 Add HIP checks in texture driver sample (#1581)
[ROCm/hip-tests commit: bee4958708]
2019-10-24 17:45:51 +05:30
satyanveshd 75f4baa12c Fix occupany APIs (#1560)
Addresses SWDEV-205006 

[ROCm/hip-tests commit: 033960c86e]
2019-10-24 17:44:47 +05:30
kjayapra-amd 1f143189f8 Use the correct return type in runTest in 11_texture_driver sample. (#1546)
Fixes SWDEV-203394.
Currently in runTest() returns true, even if the texture reference copy does not happen. Using the existing testResult Flag to return from runTest().

[ROCm/hip-tests commit: 26c3b4f985]
2019-10-16 10:52:15 +05:30
Anusha Godavarthy Surya 1f1da0afa7 Added unbind texture to samples and tests
[ROCm/hip-tests commit: fc776424a0]
2019-10-15 11:34:15 +05:30
Yaxun (Sam) Liu 215a715fb1 Fix sample 11_texture_driver for hip-clang (#1370)
[ROCm/hip-tests commit: d9d6374a63]
2019-08-29 01:03:20 +00:00
satyanveshd 63025d487f [sample] add new cookbook sample - occupancy (#1352)
* occupancy.cpp with Makefile

* occupancy sample changes according tothe comments

* Changes according to the review comments

* Occupancy Sample Changes

* Changes according to review comments


[ROCm/hip-tests commit: 39de5ed699]
2019-08-29 01:01:49 +00:00
Evgeny Mankov e9282e6782 [HIP][HIPIFY] Split HIP_ARRAY_DESCRIPTOR struct to HIP_ARRAY_DESCRIPTOR and HIP_ARRAY3D_DESCRIPTOR
[Reason] To be compatible with CUDA [#1133]

Update HIP code, hipify-clang, tests and docs

[TODO] Add support of the corresponding functions on nvcc fallback path


[ROCm/hip-tests commit: 7a0e0cb50e]
2019-07-11 14:58:16 +03:00
Jatin Chaudhary 9e8cd38442 Adding new unroll example (#1187)
[ROCm/hip-tests commit: 3b0faf950b]
2019-07-03 08:51:19 +00:00
Evgeny Mankov 84e4fdcef2 [HIP][HIPIFY] Make hipMemcpyParam2D coherent with cuMemcpy2D
+ Makes hip_Memcpy2D struct compatible with CUDA_MEMCPY2D struct
+ Add hipMemcpyParam2D support in nvcc fallback path
+ Update hipify-clang, tests and docs accordingly


[ROCm/hip-tests commit: 66c182946e]
2019-05-22 18:31:39 +03:00
Evgeny Mankov eaef7e9024 [HIP][tests] Copyright notice update
[ROCm/hip-tests commit: f5f240744a]
2019-05-20 18:46:23 +03:00
Nick Curtis 3a0ad509a6 Markdown fixes & Whitespace cleanup for samples (#1096)
* Fix multiline code blocks in README's

* Whitespace cleanup


[ROCm/hip-tests commit: 7391b26fac]
2019-05-12 19:27:44 +05:30
Rahul Garg 6c2ad81fba Fix error codes in P2P sample test
[ROCm/hip-tests commit: cea97d2beb]
2019-02-05 06:30:57 +05:30
Rahul Garg 69de406acc Fixed HIP error check in P2P sample test
[ROCm/hip-tests commit: 39735ffedd]
2019-01-23 01:10:07 +05:30
Maneesh Gupta 1bc2b62f98 Replace hipLaunchKernel -> hipLaunchKernelGGL
Change-Id: I4d99009e1199811d417becf1e1b934ec4d4e30be


[ROCm/hip-tests commit: bfceb14751]
2018-10-17 14:32:25 +05:30
Rahul Garg e80e6d9f68 Clean up module api samples
[ROCm/hip-tests commit: dbf1737658]
2018-08-08 22:28:13 +05:30
Rahul Garg eb77a001da Removed hidden args and hipLaunchParm from HIP/HCC path
[ROCm/hip-tests commit: bd985285df]
2018-03-16 22:50:25 +05:30
Rahul Garg d96395e02b Change co file name
[ROCm/hip-tests commit: 65b2fc4b9b]
2018-03-16 12:54:44 +05:30
Rahul Garg 5482a4237e Fixed function not found issue
[ROCm/hip-tests commit: 01ee90d564]
2018-03-16 12:35:25 +05:30
Maneesh Gupta 3277453ea5 Apply .clangformat to all repo source files
Change-Id: I7e79c6058f0303f9a98911e3b7dd2e8596079344


[ROCm/hip-tests commit: 6b09bde675]
2018-03-12 11:29:03 +05:30
Maneesh Gupta 6e2642b940 [samples] Adds a sample that shows using HIP with cmake
Change-Id: Ief983ea0894d7b5d1ea46a755f9134dda0a1bb8f


[ROCm/hip-tests commit: c15d48c543]
2017-12-05 10:48:29 +05:30
Rahul Garg 1b359db390 Changed function hipMemcpy_2D to hipMemcpyParam2D
[ROCm/hip-tests commit: 3d2e40a5df]
2017-11-21 12:36:24 +05:30
Rahul Garg c971b263c1 Update hipModuleGetTexRef API
[ROCm/hip-tests commit: 741702888f]
2017-11-19 22:10:46 +05:30
Rahul Garg 3997a72bf2 -Fixed texture driver API sample
-Added hipTexRefSetAddress and hipTexRefSetAddress2D APIs


[ROCm/hip-tests commit: 657aa51d5d]
2017-11-15 18:23:28 +05:30
Rahul Garg 25f519713a Added texture 2D driver API usage example
[ROCm/hip-tests commit: 0fffdeba92]
2017-11-09 22:35:29 +05:30
Sandeep Kumar 4ddfe042c6 Add more info for inline asm in hip kernel guide and cookbook readme
[ROCm/hip-tests commit: 451f36a42a]
2017-09-13 12:57:37 +05:30
Maneesh Gupta 6442d0652f GPUOpen-ProfessionalCompute-Tools -> ROCm-Developer-Tools
Change-Id: I9f5b29dd1097385acecb0c672770d8adca2fdcf7


[ROCm/hip-tests commit: 8252ae785b]
2017-07-05 11:44:44 +05:30
Aditya Atluri faa7417a8c removed rm for /opt/rocm/hip/src in inline asm sample
Change-Id: I0c02bccd4cd35e01a8e889ea1e586ea8baf0ab90


[ROCm/hip-tests commit: a491a49f98]
2017-06-20 11:35:52 -05:00
Sandeep Kumar a51e393772 Add readme for inline asm and unroll cookbook samples
Change-Id: I71b7a5652c3dad181c5df60ab0dd1b81d79f1bfb


[ROCm/hip-tests commit: 7c6b0384bb]
2017-05-31 09:25:50 +05:30
Sandeep Kumar 78789054f0 Add unroll and inline asm cookbook samples
Change-Id: Ie5a0fbb01b7fca82959090d89299533d49e092f1


[ROCm/hip-tests commit: 83472bfa78]
2017-05-31 09:25:35 +05:30