Skip to content

Latest commit

 

History

History
77 lines (58 loc) · 4.41 KB

hipification_notes.md

File metadata and controls

77 lines (58 loc) · 4.41 KB

normalizer.cu

  • Found no inline PTX assembly (searched for 'asm')
  • Found no hardcoded dependencies on warp size (searched for '32')
  • Ignored the hipify-perl warnings below, as they still seemed to be successfully replaced with HIP equivalents
[mqueen@login1 include]$ hipify-perl normalizer.cu > normalizer.cpp
  warning: normalizer.cu:87: deprecated identifier "cudnnBatchNormMode_t" since CUDNN 9.0.0
  warning: normalizer.cu:87: deprecated identifier "CUDNN_BATCHNORM_SPATIAL" since CUDNN 9.0.0
  warning: normalizer.cu:95: deprecated identifier "cudnnDeriveBNTensorDescriptor" since CUDNN 9.0.0
  warning: normalizer.cu:98: deprecated identifier "cudnnBatchNormalizationForwardTraining" since CUDNN 9.0.0

DTW.cu

  • Found no inline PTX assembly (searched for 'asm')

  • Found no hardcoded dependencies on warp size (searched for '32')

  • Replaced '__shfl_down_sync' with '__shfl_down' and dropped the sync mask parameter

  • Replaced '__shfl_up_sync' with '__shfl_up' and dropped the sync mask parameter

[mqueen@login1 include]$ hipify-perl DTW.cu > DTW.cpp
  warning: DTW.cu:189: unsupported device function "__shfl_down_sync":     new_query_val = __shfl_down_sync(ALL, new_query_val, 1);
  warning: DTW.cu:216: unsupported device function "__shfl_up_sync":         min_segment = __shfl_up_sync((ALL), min_segment, 1);
  warning: DTW.cu:234: unsupported device function "__shfl_up_sync":       query_val = __shfl_up_sync(ALL, query_val, 1);
  warning: DTW.cu:240: unsupported device function "__shfl_up_sync":       penalty_left = __shfl_up_sync(ALL, penalty_here[SEGMENT_SIZE - 1], 1);
  warning: DTW.cu:245: unsupported device function "__shfl_down_sync":       new_query_val = __shfl_down_sync(ALL, new_query_val, 1);
  warning: DTW.cu:252: unsupported device function "__shfl_down_sync":           __shfl_down_sync(ALL, last_col_penalty_shuffled, 1);
  warning: DTW.cu:311: unsupported device function "__shfl_down_sync":         min_segment = __shfl_down_sync((ALL), min_segment, 31);
  warning: DTW.cu:344: unsupported device function "__shfl_down_sync":       new_query_val = __shfl_down_sync(ALL, new_query_val, 1);
  warning: DTW.cu:372: unsupported device function "__shfl_up_sync":         query_val = __shfl_up_sync(ALL, query_val, 1);
  warning: DTW.cu:378: unsupported device function "__shfl_down_sync":             __shfl_down_sync(ALL, last_col_penalty_shuffled, 1);
  warning: DTW.cu:389: unsupported device function "__shfl_down_sync":         new_query_val = __shfl_down_sync(ALL, new_query_val, 1);
  warning: DTW.cu:393: unsupported device function "__shfl_up_sync":         penalty_left = __shfl_up_sync(ALL, penalty_here[SEGMENT_SIZE - 1], 1);
  warning: DTW.cu:412: unsupported device function "__shfl_up_sync":             min_segment = __shfl_up_sync((ALL), min_segment, 1);
  warning: DTW.cu:438: unsupported device function "__shfl_down_sync":       min_segment = __shfl_down_sync((ALL), min_segment, 31);
  warning: DTW.cu:480: unsupported device function "__shfl_down_sync":     new_query_val = __shfl_down_sync(ALL, new_query_val, 1);
  warning: DTW.cu:508: unsupported device function "__shfl_up_sync":       query_val = __shfl_up_sync(ALL, query_val, 1);
  warning: DTW.cu:513: unsupported device function "__shfl_down_sync":       new_query_val = __shfl_down_sync(ALL, new_query_val, 1);
  warning: DTW.cu:517: unsupported device function "__shfl_up_sync":       penalty_left = __shfl_up_sync(ALL, penalty_here[SEGMENT_SIZE - 1], 1);
  warning: DTW.cu:540: unsupported device function "__shfl_up_sync":           min_segment = __shfl_up_sync((ALL), min_segment, 1);

main.cu

  • Found no inline PTX assembly (searched for 'asm')
  • Found no hardcoded dependencies on warp size (searched for '32')
  • hipify-perl returned no errors or warnings
[mqueen@login1 src]$ hipify-perl main.cu > main.cpp

ru_main.cu

  • Found no inline PTX assembly (searched for 'asm')
  • Found no hardcoded dependencies on warp size (searched for '32')
  • hipify-perl returned no errors or warnings
[mqueen@login1 src]$ hipify-perl ru_main.cu > ru_main.cpp

common.hpp

  • Replaced #include <cuda_fp16.h> with #include <hip/hip_fp16.h>
  • (UNDID) Replaced #define COMON_HPP with #define COMMON_HPP (not a hipification thing, but a warning I got when building)

DTW.hpp

  • Replaced #include <cuda_fp16.h> with #include <hip/hip_fp16.h>
  • Replaced #include "DTW.cu" with #include "DTW.cpp"