Commit Graph

44 Commits

Author SHA1 Message Date
Maneesh Gupta 4ee0549d4f Change default HIP installation to /opt/rocm/hip
[ROCm/hip commit: 18af18476b]
2016-04-14 16:36:55 +05:30
Aditya Atluri 40d74c820a added back hc flag
[ROCm/hip commit: 9e7ee4062b]
2016-04-11 13:04:13 -05:00
Aditya Atluri 817cda91ff added C guard to hip_runtime.h
[ROCm/hip commit: d5feabfa1c]
2016-04-11 13:01:02 -05:00
Maneesh Gupta d06cd35623 Fix broken CUDA path in hipcc
[ROCm/hip commit: 1e6b79ea64]
2016-04-07 10:48:16 +05:30
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 812f5b3a97 Add c++abi to linker options for HCC
[ROCm/hip commit: 8e3465f6ae]
2016-04-02 22:32:05 +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
Aditya Atluri 59e056e3e9 Revert to multiple output files than single .a lib
[ROCm/hip commit: 9de4c04a0a]
2016-03-30 07:54:18 -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 90eb7e1c4e Improve automated platform detection.
If AMD GPU is installed and detected by driver, default
HIP_PLATFORM to hcc.


[ROCm/hip commit: 373251aca0]
2016-03-25 17:08:34 -05:00
Ben Sander 1868a6c45e report linux distro if possible
[ROCm/hip commit: 814c3d30fc]
2016-03-24 22:12:41 -05:00
Ben Sander 60a2a67d46 Provcide more flexiblity in using HIP_PATH to control installation.
Also improve docs for developers / contributing.


[ROCm/hip commit: f3ad047194]
2016-03-24 13:33:07 -05:00
Ben Sander 19760d3390 Add --hipcc_explicit_lib option
Tells hipcc not to add /opt/hip or -lhip_hcc to command-line
(since it has already been done).


[ROCm/hip commit: eb33395045]
2016-03-24 11:53:33 -05:00
Aditya Atluri e0c6809779 moved variables to headers
[ROCm/hip commit: 7920fd9a47]
2016-03-23 12:59:52 -05:00
Aditya Atluri 4ca4cae3fa WIP added modular feature for device apis
[ROCm/hip commit: 89bfc0e375]
2016-03-23 07:54:01 -05:00
Ben Sander 2313b4b7b5 Only include activity logger if CodeXL installed.
Fix hipHostMalloc in hipBusBandwidth.


[ROCm/hip commit: 3a5f964c4f]
2016-03-22 09:27:10 -05:00
Ben Sander c31a02348b remove unneeded files
[ROCm/hip commit: 7715fe424c]
2016-03-23 03:41:01 -05:00
Ben Sander 82cda5c087 use codexl marker interface to mark HIP function/begin end.
- Creates markers in HIP group and they show up in CodeXL trace
- Marker text includes HIP functioin arguments
- (Add trace_helper to convert arguments to strings)
- Still need to add HIP_INIT_API for ~30 HIP functions.


[ROCm/hip commit: b6b3fea05b]
2016-03-23 01:17:53 -05:00
Ben Sander b319209299 hipHostRegister and hipHostMalloc refactor.
Note hipHostMalloc (not hipHostAlloc or hipMallocHost).
 -  the hipHost* is used for all HIP APIs dealing with Host memory.
    (including hipHostMalloc, hipHostFree, hipHostRegister,
hipHostUnregister, hipHostGetFlags, hipHostGetDevicePointer).
  - hipMallocHost is consistent with "hipMalloc" for allocating device
    memory.  Enumerations hipHostMalloc* also used as optional
    flags parm to hipHostMalloc.


[ROCm/hip commit: ab910efb96]
2016-03-22 02:30:10 -05:00
Aditya Atluri f1b8758919 corrected hipDeviceGetProperties to hipGetDeviceProperties - not docs
[ROCm/hip commit: d3ba2b9782]
2016-03-06 08:31:04 -06:00
Aditya Atluri 8e0fc269d7 Added hipHostAlloc feature for CUDA
[ROCm/hip commit: f479531be5]
2016-03-05 13:58:56 -06:00
Maneesh Gupta 25bc5be377 Fix hipcc from trying to compile object files
[ROCm/hip commit: 5013884d3d]
2016-03-03 09:47:37 +05:30
Ben Sander 02a4720281 add check for hip platform configuration
[ROCm/hip commit: 352c056ea6]
2016-02-28 21:08:53 -06:00
Ben Sander cefe65e24a touchup
[ROCm/hip commit: af22d056e0]
2016-02-28 21:08:53 -06:00
Ben Sander 66d6dbf686 disable rocrv2, properly
[ROCm/hip commit: ea09557e1b]
2016-02-27 03:31:30 -06:00
Aditya Avinash Atluri 433cf742b9 Null argument handling HIPCC
This change makes hipcc handle no-arguments passed to it. It solves https://github.com/AMDComputeLibraries/HIP-privatestaging/issues/1

[ROCm/hip commit: 3238185276]
2016-02-26 13:47:58 -06:00
Ben Sander 2a650be661 Add PATH and LD_LIBRARY_FLAGS
[ROCm/hip commit: a30018e166]
2016-02-25 23:07:18 -06:00
Ben Sander 5ca4914e0e Merge branch 'memtracker' into privatestaging
Conflicts:
	src/hip_hcc.cpp


[ROCm/hip commit: 4adab7b7ef]
2016-02-25 19:38:46 -06:00
Evgeny Mankov d8df47383d A support of the following device properties is added to legacy hipify.pl: hipDeviceAttributeConcurrentKernels, hipDeviceAttributeMemoryClockRate & hipDeviceAttributeMemoryBusWidth.
[ROCm/hip commit: b23f9776ca]
2016-02-19 13:36:37 +03:00
Ben Sander f54ada2a14 Search multiple dirs.
[ROCm/hip commit: 311a728d25]
2016-02-18 21:07:14 -06:00
Ben Sander 16c1d446cf Tweak full formatting
[ROCm/hip commit: dffe573d49]
2016-02-17 21:22:31 -06:00
Ben Sander bb8a1fe72d more work on async copies
[ROCm/hip commit: 59379ffb44]
2016-02-17 00:59:12 -06:00
Ben Sander d4a90f8afd Create address tracker for am_alloc.
Tracks device where memory is allocated, pinned-host or device, and
more.

Uses memory-range-based lookups - so pointers that exist anywhere in

the range of hostPtr + size will find the associated AmPointerInfo.

The insertions and lookups use a self-balancing binary tree and
should support O(logN) lookup speed.


[ROCm/hip commit: 4ee2a5229b]
2016-02-12 18:24:08 -06:00
Evgeny Mankov fcd154097f Fix typo: maxThreadsPerMultiProcessor -> MaxSharedMemoryPerMultiprocessor
Device property MaxSharedMemoryPerMultiprocessor set equal to totalGlobalMem (HIP path).
Reason: MaxSharedMemoryPerMultiprocessor should be as the same as group memory size. Group memory will not be paged out, so, the physical memory size = total shared memory size = group region size. NVCC path remains untouched: CUDA's device property MaxSharedMemoryPerMultiprocessor is reported.

hipify is updated as well.


[ROCm/hip commit: ea8f99702d]
2016-02-12 01:29:20 +03:00
Maneesh Gupta 1803451df7 which_hip -> hipconfig
[ROCm/hip commit: 7cc7f88717]
2016-02-09 11:51:26 +05:30
Ben Sander ebf94bcf3a Add hcc-config info to --full
[ROCm/hip commit: 2a33197a06]
2016-02-08 21:44:55 -06:00
Ben Sander ff36d32095 iScript cleanup, add --full
[ROCm/hip commit: 7cb5412ff4]
2016-02-08 21:44:55 -06:00
Sam Kolton 2306293526 Implementation of hipDeviceGetAttribute()
[ROCm/hip commit: 0a27507208]
2016-02-04 17:39:27 +03:00
Ben Sander 2bf594e928 Merge branch 'master' into privatestaging
[ROCm/hip commit: 1327d3e03d]
2016-02-03 09:39:19 -06:00
Ben Sander 57d88913f8 Remove warning on ballot/any/all and pop/clz.
Since these are supported in HIP no reason to emit warnings.


[ROCm/hip commit: 3898f6af3c]
2016-02-02 10:02:48 -06:00
Jack Chung c94a8de983 Suppress linker warnings in case HCC distribution contains OpenCL/SPIR symbols
[ROCm/hip commit: 1e7642c569]
2016-02-02 16:27:42 +08:00
Ben Sander 34ee235d06 Fix typo in hipStreamWaitEvent. Fixes#9
[ROCm/hip commit: 1e2fb8a1ab]
2016-01-28 09:51:11 -06:00
Ben Sander 97cf8b8ac9 Initial commit for GPUOpen Launch
[ROCm/hip commit: f38e63ff18]
2016-01-26 20:14:33 -06:00