So I’m building PyTorch from source and the caffe2 subrepo is still using old hiprng libraries
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
hiprng_LIBRARIES
    linked by target "caffe2_hip" in directory /home/thomas/code/pytorch/caffe2
hipsparse_LIBRARIES
    linked by target "caffe2_hip" in directory /home/thomas/code/pytorch/caffe2

-- Configuring incomplete, errors occurred!

I’m having some fun getting hipsparse installed, but that’s neither here nor there. My question is that I can see it’s being actively worked on:

  
      github.com/pytorch/pytorch
  
  
      
    
  


  Get ROCm building again on master



  by Jorghi12
  on 06:41PM - 11 Jun 18



  47 commits
  changed 22 files
  with 187 additions
  and 132 deletions.


  
  
    
    
  
  


and it’s been changed in places

  
      github.com/pytorch/pytorch
  
  
      
    
  


  Renamed from hiprng to hcrng since the soname is different now.




  by Jorghi12
  on 05:07AM - 12 Jun 18



  changed 1 files
  with 1 additions
  and 1 deletions.


  
  
    
    
  
  


but not in others, specifically for caffe2 when building ATEN.

  
      github.com
  
  
    pytorch/pytorch/blob/master/cmake/Dependencies.cmake#L505 4

  set(Caffe2_HIP_INCLUDES
    ${hip_INCLUDE_DIRS} ${hcc_INCLUDE_DIRS} ${hsa_INCLUDE_DIRS} ${rocrand_INCLUDE_DIRS} ${hiprand_INCLUDE_DIRS} ${rocblas_INCLUDE_DIRS} ${miopen_INCLUDE_DIRS} ${thrust_INCLUDE_DIRS} $<INSTALL_INTERFACE:include> ${Caffe2_HIP_INCLUDES})


  # This is needed for library added by hip_add_library (same for hip_add_executable)
  hip_include_directories(${Caffe2_HIP_INCLUDES})


  set(Caffe2_HIP_DEPENDENCY_LIBS
    ${rocrand_LIBRARIES} ${hiprand_LIBRARIES} ${PYTORCH_HIP_HCC_LIBRARIES} ${PYTORCH_MIOPEN_LIBRARIES} ${hipblas_LIBRARIES})
  # Additional libraries required by PyTorch AMD that aren't used by Caffe2 (not in Caffe2's docker image)
  if(BUILD_ATEN)
    set(Caffe2_HIP_DEPENDENCY_LIBS ${Caffe2_HIP_DEPENDENCY_LIBS} ${hipsparse_LIBRARIES} ${hiprng_LIBRARIES})
  endif()
  # TODO: There is a bug in rocblas's cmake files that exports the wrong targets name in ${rocblas_LIBRARIES}
  list(APPEND Caffe2_HIP_DEPENDENCY_LIBS
    roc::rocblas)
else()
  caffe2_update_option(USE_ROCM OFF)
endif()
endif()


# ---[ ROCm



  
  
    
    
  
  


And it looks like the updates from hiprng were to hcrng, which has been outmoded for rocrand, which also shows up in the build files.
So, aside from getting hipsparse installed (I’ve got a bug in my hipconfig https://github.com/ROCm-Developer-Tools/HIP/issues/552 20), any suggestions?