Commit Graph

54851 Commits

Author SHA1 Message Date
foreman 3cc5b26847 P4 to Git Change 1469983 by lmoriche@lmoriche_opencl_dev2 on 2017/10/13 17:30:16
SWDEV-133886 - [Linux-Pro][VEGA ][Nuke]OpenCL kernel compilation failed" error is observed with Nuke on Vega10
	- Port CL#1116855 to OCL/ROCm.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocprogram.cpp#73 edit


[ROCm/clr commit: d4911729e6]
2017-10-13 17:36:33 -04:00
foreman d4911729e6 P4 to Git Change 1469983 by lmoriche@lmoriche_opencl_dev2 on 2017/10/13 17:30:16
SWDEV-133886 - [Linux-Pro][VEGA ][Nuke]OpenCL kernel compilation failed" error is observed with Nuke on Vega10
	- Port CL#1116855 to OCL/ROCm.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocprogram.cpp#73 edit
2017-10-13 17:36:33 -04:00
Felix Kuehling cb4814eadc Make system memory allocations NUMA aware
Use mbind to specify the NUMA node for system memory allocation. This
only works with HSA_USERPTR_FOR_PAGED_MEM=1.

Change-Id: I88e7815d5a5aefcc4c22358c1a4a1635d7677ef3
Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
2017-10-13 16:25:56 -04:00
Felix Kuehling b19d5e9f9a Make system memory allocations NUMA aware
Use mbind to specify the NUMA node for system memory allocation. This
only works with HSA_USERPTR_FOR_PAGED_MEM=1.

Change-Id: I88e7815d5a5aefcc4c22358c1a4a1635d7677ef3
Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>


[ROCm/ROCR-Runtime commit: cb4814eadc]
2017-10-13 16:25:56 -04:00
Chris Freehill a7cbe78366 Use Major/Minor/Step device numbers to differentiate gfx devices
Change-Id: I0901871971a5b33018917ada6c0e69ac7aa91944
2017-10-13 16:18:24 -04:00
Chris Freehill 26ebd1727c Use Major/Minor/Step device numbers to differentiate gfx devices
Change-Id: I0901871971a5b33018917ada6c0e69ac7aa91944


[ROCm/ROCR-Runtime commit: a7cbe78366]
2017-10-13 16:18:24 -04:00
foreman 65de22f0ed P4 to Git Change 1469850 by gandryey@gera-w8 on 2017/10/13 13:56:50
SWDEV-79445 - OCL generic changes and code clean-up
	- Remove obsolete/unused code

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paldebugmanager.cpp#3 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palvirtual.cpp#62 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palvirtual.hpp#34 edit


[ROCm/clr commit: 59ed7d2445]
2017-10-13 14:10:40 -04:00
foreman 59ed7d2445 P4 to Git Change 1469850 by gandryey@gera-w8 on 2017/10/13 13:56:50
SWDEV-79445 - OCL generic changes and code clean-up
	- Remove obsolete/unused code

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paldebugmanager.cpp#3 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palvirtual.cpp#62 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palvirtual.hpp#34 edit
2017-10-13 14:10:40 -04:00
Tom Stellard e2ed9cf79a Don't mark heap memory as executable v3
Marking heap memory as executable using mprotect() is not allowed
by SELinux.  mprotect() calls that try to do this will fail on systems
with SELinux enabled.  This is also a security risk, so it should be
fixed even on systems that allow this.

Any memory we want to mark as executable must be allocated using mmap().
See https://www.akkadia.org/drepper/selinux-mem.html

The two places where we try to mark heap memory as executable both use
posix_memalign() to allocate the heap memory.  In both cases, the
alignment value passed into this function is always equal to PAGE_SIZE,
which means that they are safe to replace with mmap(), which guarantees
alignment to PAGE_SIZE.  In this case PAGE_SIZE has been set to
sysconf(_SC_PAGESIZE);

v2:
  - Use MAP_PRIVATE instead of MAP_SHARED.  This matches the behavior
    of memory allocated by posix_memalign()
  - Ignore alignment hints instead of returning error when we can't
    accommodate them.
  - Drop alignment parameter of allocate_exec_aligned_memory() since
    the only alignment supported is sysconf(_SC_PAGESIZE).
  - Remove extra parameter from fmm_release().
  - Add error path to fmm_allocate_host_cpu() for when mmap fails.

v3:
  - Avoid use after free.

Change-Id: I7d51279790d9700bc3fa761c44bfde1c1936019b
Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
2017-10-13 14:05:58 -04:00
Tom Stellard 7451594338 Don't mark heap memory as executable v3
Marking heap memory as executable using mprotect() is not allowed
by SELinux.  mprotect() calls that try to do this will fail on systems
with SELinux enabled.  This is also a security risk, so it should be
fixed even on systems that allow this.

Any memory we want to mark as executable must be allocated using mmap().
See https://www.akkadia.org/drepper/selinux-mem.html

The two places where we try to mark heap memory as executable both use
posix_memalign() to allocate the heap memory.  In both cases, the
alignment value passed into this function is always equal to PAGE_SIZE,
which means that they are safe to replace with mmap(), which guarantees
alignment to PAGE_SIZE.  In this case PAGE_SIZE has been set to
sysconf(_SC_PAGESIZE);

v2:
  - Use MAP_PRIVATE instead of MAP_SHARED.  This matches the behavior
    of memory allocated by posix_memalign()
  - Ignore alignment hints instead of returning error when we can't
    accommodate them.
  - Drop alignment parameter of allocate_exec_aligned_memory() since
    the only alignment supported is sysconf(_SC_PAGESIZE).
  - Remove extra parameter from fmm_release().
  - Add error path to fmm_allocate_host_cpu() for when mmap fails.

v3:
  - Avoid use after free.

Change-Id: I7d51279790d9700bc3fa761c44bfde1c1936019b
Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>


[ROCm/ROCR-Runtime commit: e2ed9cf79a]
2017-10-13 14:05:58 -04:00
Tom Stellard 4815d9b887 Build fixes for gcc 7.2 v2
src/perfctr.c: In function ‘destroy_shared_region’:
src/perfctr.c:154:10: error: logical ‘and’ of equal expressions [-Werror=logical-op]
  if (sem && sem != SEM_FAILED) {
          ^~
src/perfctr.c: In function ‘update_block_slots’:
src/perfctr.c:323:11: error: logical ‘or’ of equal expressions [-Werror=logical-op]
  if (!sem || sem == SEM_FAILED)
           ^~
v2:
  - Initialize and reset sem to SEM_FAILED.

Change-Id: Id70361079b715c4946b13e4460e4fd85d9542c46
Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
2017-10-13 11:37:38 -04:00
Tom Stellard 6b45ae6926 Build fixes for gcc 7.2 v2
src/perfctr.c: In function ‘destroy_shared_region’:
src/perfctr.c:154:10: error: logical ‘and’ of equal expressions [-Werror=logical-op]
  if (sem && sem != SEM_FAILED) {
          ^~
src/perfctr.c: In function ‘update_block_slots’:
src/perfctr.c:323:11: error: logical ‘or’ of equal expressions [-Werror=logical-op]
  if (!sem || sem == SEM_FAILED)
           ^~
v2:
  - Initialize and reset sem to SEM_FAILED.

Change-Id: Id70361079b715c4946b13e4460e4fd85d9542c46
Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>


[ROCm/ROCR-Runtime commit: 4815d9b887]
2017-10-13 11:37:38 -04:00
foreman a2715be56d P4 to Git Change 1469594 by johtaylo@johtaylo-jtincrementor2-increment on 2017/10/13 03:00:04
SWDEV-2 - Change OpenCL version number from 2517 to 2518.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#2265 edit


[ROCm/clr commit: c6ab68be17]
2017-10-13 03:17:38 -04:00
foreman c6ab68be17 P4 to Git Change 1469594 by johtaylo@johtaylo-jtincrementor2-increment on 2017/10/13 03:00:04
SWDEV-2 - Change OpenCL version number from 2517 to 2518.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#2265 edit
2017-10-13 03:17:38 -04:00
Sean Keely 4f299a9909 Capture more memory allocation types with the 2MB allocator.
TensorFlow was running out of VRAM due to padding up allocations
from legacy memory APIs.  These allocations have been added to
the fragment allocator to improve VRAM utilization.

Change-Id: Ic680fff576a0434b3b17a4c91746da44e09957fa
2017-10-12 23:22:10 -04:00
Sean Keely 93e58b9100 Capture more memory allocation types with the 2MB allocator.
TensorFlow was running out of VRAM due to padding up allocations
from legacy memory APIs.  These allocations have been added to
the fragment allocator to improve VRAM utilization.

Change-Id: Ic680fff576a0434b3b17a4c91746da44e09957fa


[ROCm/ROCR-Runtime commit: 4f299a9909]
2017-10-12 23:22:10 -04:00
foreman 4ce1050c5f P4 to Git Change 1469436 by kzhuravl@kzhuravl-fiji-ocllc on 2017/10/12 18:56:04
SWDEV-125823 - Fix perforce opencl build for upcoming merge

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocprogram.cpp#72 edit


[ROCm/clr commit: e0b141b516]
2017-10-12 19:07:29 -04:00
foreman e0b141b516 P4 to Git Change 1469436 by kzhuravl@kzhuravl-fiji-ocllc on 2017/10/12 18:56:04
SWDEV-125823 - Fix perforce opencl build for upcoming merge

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocprogram.cpp#72 edit
2017-10-12 19:07:29 -04:00
foreman b213f82082 P4 to Git Change 1469411 by wchau@wchau_OCL_boltzmann on 2017/10/12 17:51:56
SWDEV-120036 - Supporting the cl_amd_device_attribute_query on the ROC device
	- divided the query of HSA_AMD_AGENT_INFO_MEMORY_WIDTH by 32 to obtained the globale memory channels as done in ORCA and PAL

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocdevice.cpp#69 edit


[ROCm/clr commit: 05216e1f54]
2017-10-12 17:59:29 -04:00
foreman 05216e1f54 P4 to Git Change 1469411 by wchau@wchau_OCL_boltzmann on 2017/10/12 17:51:56
SWDEV-120036 - Supporting the cl_amd_device_attribute_query on the ROC device
	- divided the query of HSA_AMD_AGENT_INFO_MEMORY_WIDTH by 32 to obtained the globale memory channels as done in ORCA and PAL

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocdevice.cpp#69 edit
2017-10-12 17:59:29 -04:00
Amber Lin 5815d9de9b Fix endless loop
Fix a while loop that can cause forever loop when cpuid instruction
doesn't work properly.

Change-Id: Iefa49d23b40c994eb4369621974a7d3c4067e47a
Signed-off-by: Amber Lin <Amber.Lin@amd.com>
2017-10-12 14:22:42 -04:00
Amber Lin a6fc0a8be1 Fix endless loop
Fix a while loop that can cause forever loop when cpuid instruction
doesn't work properly.

Change-Id: Iefa49d23b40c994eb4369621974a7d3c4067e47a
Signed-off-by: Amber Lin <Amber.Lin@amd.com>


[ROCm/ROCR-Runtime commit: 5815d9de9b]
2017-10-12 14:22:42 -04:00
foreman e2157475ac P4 to Git Change 1469232 by kzhuravl@kzhuravl-fiji-ocllc on 2017/10/12 13:32:01
SWDEV-125823 - Fix perforce opencl build

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palkernel.cpp#38 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palkernel.hpp#14 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palprogram.cpp#47 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palprogram.hpp#20 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocprogram.hpp#29 edit


[ROCm/clr commit: 23d806c514]
2017-10-12 13:38:43 -04:00
foreman 23d806c514 P4 to Git Change 1469232 by kzhuravl@kzhuravl-fiji-ocllc on 2017/10/12 13:32:01
SWDEV-125823 - Fix perforce opencl build

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palkernel.cpp#38 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palkernel.hpp#14 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palprogram.cpp#47 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palprogram.hpp#20 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocprogram.hpp#29 edit
2017-10-12 13:38:43 -04:00
Evgeny Mankov 8d9f902675 [HIPIFY][#199][Partial fix] Fix for cudaLaunchKernel transformation
[Synopsis]
If any of kernel arguments is a MACRO its location calculation is wrong (location of its definition is actually calculated).
Thus garbage code is being produced on the place of such a MACRO starting from the end of its actual definition.

[Solution]
Add isMacroBodyExpansion and isMacroArgExpansion checks on kernel arguments.


[ROCm/clr commit: f3ef942407]
2017-10-12 20:05:42 +03:00
Evgeny Mankov f3ef942407 [HIPIFY][#199][Partial fix] Fix for cudaLaunchKernel transformation
[Synopsis]
If any of kernel arguments is a MACRO its location calculation is wrong (location of its definition is actually calculated).
Thus garbage code is being produced on the place of such a MACRO starting from the end of its actual definition.

[Solution]
Add isMacroBodyExpansion and isMacroArgExpansion checks on kernel arguments.
2017-10-12 20:05:42 +03:00
Evgeny Mankov 7ee8e2d51b [HIPIFY][#199][Partial fix] Fix for cudaLaunchKernel transformation
[Synopsis]
If any of kernel arguments is a MACRO its location calculation is wrong (location of its definition is actually calculated).
Thus garbage code is being produced on the place of such a MACRO starting from the end of its actual definition.

[Solution]
Add isMacroBodyExpansion and isMacroArgExpansion checks on kernel arguments.
2017-10-12 20:05:42 +03:00
foreman 78d9c130b5 P4 to Git Change 1469140 by emankov@em-hsa-lightning on 2017/10/12 10:53:13
SWDEV-86035 - Fix OCL build on Linux after LLVM merge (CL 1469082)

	TODO: PAL build should be fixed accordingly

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rockernel.cpp#27 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocprogram.cpp#71 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocprogram.hpp#28 edit


[ROCm/clr commit: 3c7f4d6c49]
2017-10-12 10:57:57 -04:00
foreman 3c7f4d6c49 P4 to Git Change 1469140 by emankov@em-hsa-lightning on 2017/10/12 10:53:13
SWDEV-86035 - Fix OCL build on Linux after LLVM merge (CL 1469082)

	TODO: PAL build should be fixed accordingly

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rockernel.cpp#27 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocprogram.cpp#71 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocprogram.hpp#28 edit
2017-10-12 10:57:57 -04:00
foreman d442f86781 P4 to Git Change 1469018 by johtaylo@johtaylo-jtincrementor2-increment on 2017/10/12 03:00:04
SWDEV-2 - Change OpenCL version number from 2516 to 2517.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#2264 edit


[ROCm/clr commit: 469491fd51]
2017-10-12 03:09:03 -04:00
foreman 469491fd51 P4 to Git Change 1469018 by johtaylo@johtaylo-jtincrementor2-increment on 2017/10/12 03:00:04
SWDEV-2 - Change OpenCL version number from 2516 to 2517.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#2264 edit
2017-10-12 03:09:03 -04:00
foreman de8ab93999 P4 to Git Change 1468787 by wchau@wchau_OCL_boltzmann on 2017/10/11 15:37:08
SWDEV-116372 - Implement OpenCL profile extension for ROCr using AQL-PM4 library

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/roccounters.cpp#1 add
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/roccounters.hpp#1 add
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocvirtual.cpp#44 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocvirtual.hpp#14 edit
... //depot/stg/opencl/drivers/opencl/runtime/platform/perfctr.hpp#6 edit


[ROCm/clr commit: d9a5ce031c]
2017-10-11 15:44:54 -04:00
foreman d9a5ce031c P4 to Git Change 1468787 by wchau@wchau_OCL_boltzmann on 2017/10/11 15:37:08
SWDEV-116372 - Implement OpenCL profile extension for ROCr using AQL-PM4 library

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/roccounters.cpp#1 add
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/roccounters.hpp#1 add
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocvirtual.cpp#44 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocvirtual.hpp#14 edit
... //depot/stg/opencl/drivers/opencl/runtime/platform/perfctr.hpp#6 edit
2017-10-11 15:44:54 -04:00
foreman 611a401e77 P4 to Git Change 1468408 by johtaylo@johtaylo-jtincrementor2-increment on 2017/10/11 03:00:05
SWDEV-2 - Change OpenCL version number from 2515 to 2516.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#2263 edit


[ROCm/clr commit: bf1ff9f160]
2017-10-11 03:09:36 -04:00
foreman bf1ff9f160 P4 to Git Change 1468408 by johtaylo@johtaylo-jtincrementor2-increment on 2017/10/11 03:00:05
SWDEV-2 - Change OpenCL version number from 2515 to 2516.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#2263 edit
2017-10-11 03:09:36 -04:00
foreman c00b7a5b17 P4 to Git Change 1468181 by gandryey@gera-w8 on 2017/10/10 17:42:02
SWDEV-133815 - PAL support for Linux Pro w/OpenCL 2.0 support
	- Fix the clear size in FillBuffer. It's in bytes.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palvirtual.cpp#61 edit


[ROCm/clr commit: 7b524705c1]
2017-10-10 17:54:02 -04:00
foreman 7b524705c1 P4 to Git Change 1468181 by gandryey@gera-w8 on 2017/10/10 17:42:02
SWDEV-133815 - PAL support for Linux Pro w/OpenCL 2.0 support
	- Fix the clear size in FillBuffer. It's in bytes.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palvirtual.cpp#61 edit
2017-10-10 17:54:02 -04:00
Ramesh Errabolu 703b1466c1 Update Copy requests involving all pools i.e. options -a or -A
Change-Id: I0c8d8fbb39f43cd6a1f84ae6ae32337fa9b1f5e2
2017-10-10 13:01:46 -04:00
Ramesh Errabolu e5a242acf5 Update Copy requests involving all pools i.e. options -a or -A
Change-Id: I0c8d8fbb39f43cd6a1f84ae6ae32337fa9b1f5e2


[ROCm/ROCR-Runtime commit: 703b1466c1]
2017-10-10 13:01:46 -04:00
foreman 1dcc437ff8 P4 to Git Change 1467821 by johtaylo@johtaylo-jtincrementor-increment on 2017/10/10 03:00:05
SWDEV-2 - Change OpenCL version number from 2514 to 2515.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#2262 edit


[ROCm/clr commit: 3bd2d13b40]
2017-10-10 03:06:59 -04:00
foreman 3bd2d13b40 P4 to Git Change 1467821 by johtaylo@johtaylo-jtincrementor-increment on 2017/10/10 03:00:05
SWDEV-2 - Change OpenCL version number from 2514 to 2515.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#2262 edit
2017-10-10 03:06:59 -04:00
Evgeny fd99e909ff aqlprofile API: enabling privilege memory related counters
Change-Id: I28a24ad1a3ce78c5d8a6319635ae1ffd392ab690
2017-10-09 17:34:54 -05:00
Evgeny b07cbdc10e aqlprofile API: enabling privilege memory related counters
Change-Id: I28a24ad1a3ce78c5d8a6319635ae1ffd392ab690


[ROCm/ROCR-Runtime commit: fd99e909ff]
2017-10-09 17:34:54 -05:00
Evgeny Mankov e403132550 [HIPIFY] cmake changes
+ standalone build support
+ WIN MSVC support
+ disable lit testing by default
+ to enable lit testing -DHIPIFY_CLANG_TESTS=1 should be specified

Tested builds:
+ hipify-clang standalone           {Ubuntu 16.04|Windows 10} {Debug|Release} {x86|x64a} {g++|clang++|MSVC 2017} {llvm 3.8.0|llvm 3.9.0} {-DHIPIFY_CLANG_TESTS=1| }
+ HIP {-DHIPIFY_CLANG_LLVM_DIR=..|} {Ubuntu 16.04}            {Debug|Release} {x86|x64a} {hcc}                   {llvm 3.8.0|llvm 3.9.0} {-DHIPIFY_CLANG_TESTS=1| }


[ROCm/clr commit: ff38a484af]
2017-10-09 20:28:20 +03:00
Evgeny Mankov ff38a484af [HIPIFY] cmake changes
+ standalone build support
+ WIN MSVC support
+ disable lit testing by default
+ to enable lit testing -DHIPIFY_CLANG_TESTS=1 should be specified

Tested builds:
+ hipify-clang standalone           {Ubuntu 16.04|Windows 10} {Debug|Release} {x86|x64a} {g++|clang++|MSVC 2017} {llvm 3.8.0|llvm 3.9.0} {-DHIPIFY_CLANG_TESTS=1| }
+ HIP {-DHIPIFY_CLANG_LLVM_DIR=..|} {Ubuntu 16.04}            {Debug|Release} {x86|x64a} {hcc}                   {llvm 3.8.0|llvm 3.9.0} {-DHIPIFY_CLANG_TESTS=1| }
2017-10-09 20:28:20 +03:00
Evgeny Mankov 87cf949d39 [HIPIFY] cmake changes
+ standalone build support
+ WIN MSVC support
+ disable lit testing by default
+ to enable lit testing -DHIPIFY_CLANG_TESTS=1 should be specified

Tested builds:
+ hipify-clang standalone           {Ubuntu 16.04|Windows 10} {Debug|Release} {x86|x64a} {g++|clang++|MSVC 2017} {llvm 3.8.0|llvm 3.9.0} {-DHIPIFY_CLANG_TESTS=1| }
+ HIP {-DHIPIFY_CLANG_LLVM_DIR=..|} {Ubuntu 16.04}            {Debug|Release} {x86|x64a} {hcc}                   {llvm 3.8.0|llvm 3.9.0} {-DHIPIFY_CLANG_TESTS=1| }
2017-10-09 20:28:20 +03:00
Evgeny Mankov 25f3bf2c44 Merge branch 'master' of https://github.com/ROCm-Developer-Tools/HIP
[ROCm/clr commit: 86e0aa63d0]
2017-10-09 20:17:43 +03:00
Evgeny Mankov 86e0aa63d0 Merge branch 'master' of https://github.com/ROCm-Developer-Tools/HIP 2017-10-09 20:17:43 +03:00
Evgeny Mankov 557772e6ff Merge branch 'master' of https://github.com/ROCm-Developer-Tools/HIP 2017-10-09 20:17:43 +03:00
Alex Voicu 1c8db33de9 This fixes incorrect usage of the reader object, which created arcane
mismatches when one reader accessed another's section.


[ROCm/clr commit: b222448efd]
2017-10-09 15:46:38 +01:00