Commit Graph

385 Commits

Author SHA1 Message Date
Ben Sander 7c92c9cc22 P2p checkpoint.
- set USE_PEER_TO_PEER=3 (requires HCC "am_memtracker_update_peers")
- when enabling peer, turn it on for previously allocated memory.
- hipDeviceCanAccessPeer is no longer self-ware (self does not qualify
  as a peer)
- device peerlist always includes self, so when we call allow_access
  we never remove self access.
- hipDeviceReset() removes old peer mappings.


[ROCm/hip commit: 1f53c55d3e]
2016-04-11 12:52:18 -05:00
Ben Sander 92b4e79cda Improve P2P test.
- Ensure proper device is set before each command.

- Add command line switches:
    +bool p_memcpyWithPeer = false; // use the peer device for the P2P copy
    +bool p_mirrorPeers = false; // in addition to mapping current to peer
            space, map peer to current space.
    +int  p_peerDevice = -1;  // explicly specify which peer to use, else
use p_gpuDevice + 1.


[ROCm/hip commit: b11bd9bbe3]
2016-04-09 05:03:32 -05:00
Ben Sander 09f4fc4188 Improve P2P test.
Add option to select which device does the copy.


[ROCm/hip commit: 466ab79f16]
2016-04-09 04:47:12 -05:00
Ben Sander 772983e547 Remove stray debug msgs, hipInfo don't print self as peer.
[ROCm/hip commit: 816de09842]
2016-04-09 04:35:06 -05:00
Ben Sander 70108729ba fix bugs in P2P implementation
- addPeers polarity reversed, would never add.
- check allow_access return value, pipe error to hipMalloc.


[ROCm/hip commit: 7886c9e3d9]
2016-04-09 04:11:31 -05:00
Ben Sander b98a6bd1cd Fix simple P2P test, had device ptrs swapped
[ROCm/hip commit: 4d394694ae]
2016-04-08 09:23:02 -05:00
Ben Sander 6fafe64cb0 Use HIP_PATH if set else use relative ../...
[ROCm/hip commit: 597f3ed86d]
2016-04-08 02:17:29 -05:00
Ben Sander d790a73707 Print peers in hipConfig.
Also include peer APIs in vim hilighting.


[ROCm/hip commit: 01108b63ae]
2016-04-08 02:15:46 -05:00
Ben Sander 4648855acf Add simple P2P test
[ROCm/hip commit: 1a5b155768]
2016-04-07 15:51:08 -05:00
Ben Sander c0d88c2f6d Use HCC get_is_pool, add USE_PEER_TO_PEER level 2, 3.
[ROCm/hip commit: 15b4b1f81f]
2016-04-07 14:28:42 -05:00
Ben Sander 84b5016a79 For P2P, use the peer list when allocating Device memory or pinned host.
Each new allocation is automatically mapped into the address space of
all enabled peers.


[ROCm/hip commit: 41f7317fb5]
2016-04-06 16:44:31 -05:00
Ben Sander c5240bd079 P2P checkpoint.
Maintain enabled peer tables for each device.


[ROCm/hip commit: 36926e6233]
2016-04-06 15:50:47 -05:00
Ben Sander 8db4a6d46e Checkpoint initial peer2peer implementation.
[ROCm/hip commit: b02e9163ab]
2016-04-06 15:50:47 -05:00
Ben Sander 160f01d772 update proposed release notes
[ROCm/hip commit: 4e452cf1f1]
2016-04-06 15:50:47 -05:00
Aditya Atluri 71ef0b9802 Corrected corner cases
[ROCm/hip commit: 3304092b49]
2016-04-06 14:50:27 -05:00
Aditya Atluri cf9cefcb6a Added feature for cross-compilation and seperated hcc api from hip api
[ROCm/hip commit: 1dcdfc93f1]
2016-04-06 14:18:51 -05:00
Maneesh Gupta 5f1f0b34d0 Remove deprecated KERNELBEGIN and KERNELEND from bit_extract sample
[ROCm/hip commit: 70f8236ac5]
2016-04-04 14:47:02 +05:30
Maneesh Gupta efdb946fba Enable directed tests to build HIP locally via cmake option
[ROCm/hip commit: 033269c513]
2016-04-04 13:53:24 +05:30
Maneesh Gupta 812f5b3a97 Add c++abi to linker options for HCC
[ROCm/hip commit: 8e3465f6ae]
2016-04-02 22:32:05 +05:30
Maneesh Gupta 769e25ddb5 Update documentation for building and installing hip_hcc
[ROCm/hip commit: a7f6be6f9d]
2016-04-01 16:15:38 +05:30
Maneesh Gupta 733e0b417e Initial (non-default) support for shared library HIP
[ROCm/hip commit: bad947ae8b]
2016-04-01 16:08:49 +05:30
Maneesh Gupta 86dc2e5f77 Revert "Initial (non-default) support for shared library HIP"
This reverts commit 44cdc3c6a5.


[ROCm/hip commit: 9fd0a182f6]
2016-04-01 16:07:07 +05:30
Maneesh Gupta 44cdc3c6a5 Initial (non-default) support for shared library HIP
[ROCm/hip commit: 9de57129b4]
2016-04-01 15:45:32 +05:30
Maneesh Gupta 010529ecf5 Change HCC_DIR -> HCC_HOME, HSA_DIR -> HSA_PATH and HIP_INSTALL_PATH -> CMAKE_INSTALL_PREFIX
[ROCm/hip commit: 06dd3444b2]
2016-04-01 13:48:37 +05:30
Maneesh Gupta 02dfa83d06 Fix path comparison for install components in cmake
[ROCm/hip commit: 6dec2306da]
2016-04-01 12:13:22 +05:30
Aditya Atluri 70c1ac9285 added device math functions
[ROCm/hip commit: 26985b746b]
2016-03-31 12:29:19 -05:00
Aditya Atluri c750820adf Merge branch 'privatestaging' of https://github.com/AMDComputeLibraries/HIP-privatestaging into privatestaging
[ROCm/hip commit: 6224d7495e]
2016-03-31 04:45:23 -05:00
Maneesh Gupta 2f95f9b81c Merge branch 'privatestaging' of https://github.com/AMDComputeLibraries/HIP-privatestaging into privatestaging
[ROCm/hip commit: 3237115df3]
2016-03-31 21:16:39 +05:30
Maneesh Gupta c4205e5074 Cleaned up cmake
[ROCm/hip commit: a8767f71c1]
2016-03-31 17:42:29 +05:30
Aditya Atluri fe0f4e8bc2 moved cpp specific device code from headers to source
[ROCm/hip commit: 72c72d8748]
2016-03-31 04:45:00 -05:00
Aditya Atluri 2514b57970 Added directory for stress testing
[ROCm/hip commit: ea3ebcb3de]
2016-03-31 02:14:12 -05:00
Aditya Atluri c7d4da60ad Fixed failing tests
[ROCm/hip commit: 3f5ba43837]
2016-03-30 13:00:44 -05:00
Aditya Atluri 59e056e3e9 Revert to multiple output files than single .a lib
[ROCm/hip commit: 9de4c04a0a]
2016-03-30 07:54:18 -05:00
Aditya Atluri afd8f2bcfc C guarding the apis
[ROCm/hip commit: 496da0aabd]
2016-03-30 06:08:50 -05:00
Aditya Atluri 3683e2a3bd Moved flag to hip_runtime.h
[ROCm/hip commit: da1d9caf6b]
2016-03-30 03:32:39 -05:00
Maneesh Gupta a135881829 Implement more complex HCC, HSA directory selection logic
[ROCm/hip commit: 5684cd67b9]
2016-03-30 13:58:38 +05:30
Aditya Atluri f052a2752a Merge branch 'privatestaging' of https://github.com/AMDComputeLibraries/HIP-privatestaging into privatestaging
[ROCm/hip commit: 39af5d9caf]
2016-03-29 11:18:09 -05:00
Ben Sander 55bd3a8d0c rename to hipMultiThreadDevice for consistency
[ROCm/hip commit: a37a019b01]
2016-03-29 17:33:29 -05:00
Ben Sander 321933c08f Test improvements
- partition hipThreadSafeDevice into smaller pieces.
- Add debug to hipMultiThreadStream.
- print more precision when mismatch detected.
- enable more tests in CMakeFiles.txt.


[ROCm/hip commit: 23e5eb8912]
2016-03-29 17:29:31 -05:00
Ben Sander 2543332f03 Inline some new string functions.
[ROCm/hip commit: f8a4483a55]
2016-03-29 17:28:27 -05:00
Ben Sander 24f82925bb Add runtime switch to control HIP_ATP_MARKER
Only generate the function strings if requested at
compile-time && runtime.


[ROCm/hip commit: 740b730cac]
2016-03-29 17:27:30 -05:00
Ben Sander 5e3431ecc0 include codexl marker path, if found
[ROCm/hip commit: 2348091b62]
2016-03-29 17:26:44 -05:00
Ben Sander abf24c2147 Merge branch 'privatestaging' of https://github.com/AMDComputeLibraries/HIP-privatestaging into privatestaging
[ROCm/hip commit: ce4052f09c]
2016-03-29 17:12:36 -05:00
Ben Sander 1f8e0e2e72 Merge branch 'privatestaging' of https://github.com/AMDComputeLibraries/HIP-privatestaging into privatestaging
[ROCm/hip commit: fb7862dba3]
2016-03-29 14:43:35 -05:00
Aditya Atluri 024fa0b78b Update README.md
[ROCm/hip commit: 1991fb5c92]
2016-03-29 14:23:41 -05:00
Aditya Atluri 83df7785c8 Update README.md
[ROCm/hip commit: 340560cbc3]
2016-03-29 14:11:10 -05:00
Aditya Atluri ffe185d731 Calling intrinsics from global kernel
[ROCm/hip commit: 61cd2bb399]
2016-03-29 11:17:55 -05:00
Aditya Atluri d0b0cda704 added host flags to hipDeviceBody test
[ROCm/hip commit: f518d0f818]
2016-03-29 09:27:57 -05:00
Aditya Atluri b7284988d6 Added tests for running device code from a difference source file
[ROCm/hip commit: 2f46ada042]
2016-03-29 09:22:31 -05:00
Ben Sander 9e50af9124 Merge branch 'privatestaging' of https://github.com/AMDComputeLibraries/HIP-privatestaging into privatestaging
Conflicts:
	include/hcc_detail/trace_helper.h


[ROCm/hip commit: 756c0edf9b]
2016-03-29 05:56:03 -05:00