ROCm / hcc

HCC is an Open Source, Optimizing C++ Compiler for Heterogeneous Compute currently for the ROCm GPU Computing Platform
https://github.com/RadeonOpenCompute/hcc/wiki
Other
433 stars 108 forks source link

hcc with "New GNU Portable Threads" #884

Open suvayu opened 6 years ago

suvayu commented 6 years ago

I am on Fedora 28, running on 2400G, and wanted to try out Tensorflow with ROCm (with kernel 4.19). So I tried to install rocm-dkms from the Centos repos mentioned in the docs. However that fails because I do not have Pth on my system. I did some digging and I see that Pth was deprecated for nPth on Fedora. Is there any possibility for building hcc against nPth?

david-salinas commented 6 years ago

Currently, Fedora is not an officially supported operating system (https://rocm.github.io/ROCmInstall.html#software-support).

suvayu commented 6 years ago

@david-salinas, thanks for the response. I have read that page, I linked to it above! I'm asking if compiling against nPth is possible, and if so, how may I go about it?

A somewhat broader comment: it's a bit strange and frustrating to encounter situations where, the latest kernel is required but the supported distros are among the slow moving conservative ones.

PhilipDeegan commented 6 years ago

I don't think the current release supports > 4.15 anyway

suvayu commented 6 years ago

With the latest kernels (> some version of 4.18.x, or 4.19 I think) the drivers are available upstream. All I need are the userland libraries to work.

$ uname -r
4.19.0-1.vanilla.knurd.1.fc28.x86_64
$ lsmod | grep -e amdgpu -e amdkfd 
amdkfd                229376  1
amd_iommu_v2           20480  1 amdkfd
amdgpu               3428352  5
chash                  16384  1 amdgpu
i2c_algo_bit           16384  1 amdgpu
gpu_sched              28672  1 amdgpu
drm_kms_helper        196608  1 amdgpu
ttm                   131072  1 amdgpu
drm                   479232  8 gpu_sched,drm_kms_helper,amdgpu,ttm
$ lt /dev/kfd 
crw-rw-rw-. 1 root render 237, 0 Nov 15 21:29 /dev/kfd

In any case, I have resurrected the old Pth library in a copr as a temporary hack. But I have had other issues :-|

PhilipDeegan commented 6 years ago

I haven't tried to build the dkms on debian in a while, will give it a go

PhilipDeegan commented 6 years ago

This is why I have three operating systems on most machines!

KevinWhalen commented 5 years ago

Following https://github.com/RadeonOpenCompute/ROCm/issues/567#issuecomment-430771267 seems to get it working with npth.