Skip to content

Commit 65e402e

Browse files
Revert "rocthrust, rocprim, rocrand, hipcub, ck and aotriton include paths are also required"
This reverts commit 7901d8c998ed20f5f0358f351a8a80c28ad93a3b.
1 parent 600e34c commit 65e402e

File tree

1 file changed

+0
-50
lines changed

1 file changed

+0
-50
lines changed

caffe2/CMakeLists.txt

Lines changed: 0 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -1373,62 +1373,12 @@ if(USE_ROCM)
13731373
set(ROCM_SOURCE_DIR "/opt/rocm")
13741374
endif()
13751375
message(INFO "caffe2 ROCM_SOURCE_DIR = ${ROCM_SOURCE_DIR}")
1376-
find_package(rocthrust)
1377-
if(rocthrust_FOUND)
1378-
message(STATUS "rocthrust found")
1379-
else() #If rocthrust not found
1380-
message(FATAL_ERROR "rocthrust not found !!! Install rocthrust to proceed ...")
1381-
endif(rocthrust_FOUND)
1382-
1383-
find_package(aotriton)
1384-
if(aotriton_FOUND)
1385-
message(STATUS "aotriton found")
1386-
set(AOTRITON_INCLUDE_DIR ${INTERFACE_INCLUDE_DIRECTORIES})
1387-
else() #If aotriton not found
1388-
message(FATAL_ERROR "aotriton not found !!! Install aotriton to proceed ...")
1389-
endif(aotriton_FOUND)
1390-
1391-
find_package(rocprim)
1392-
if(rocprim_FOUND)
1393-
message(STATUS "rocprim found")
1394-
else() #If rocprim not found
1395-
message(FATAL_ERROR "rocprim not found !!! Install rocprim to proceed ...")
1396-
endif(rocprim_FOUND)
1397-
1398-
find_package(hipcub)
1399-
if(hipcub_FOUND)
1400-
message(STATUS "hipcub found")
1401-
else() #If hipcub not found
1402-
message(FATAL_ERROR "hipcub not found !!! Install hipcub to proceed ...")
1403-
endif(hipcub_FOUND)
1404-
1405-
find_package(rocrand)
1406-
if(rocrand_FOUND)
1407-
message(STATUS "rocrand found")
1408-
else() #If rocrand not found
1409-
message(FATAL_ERROR "rocrand not found !!! Install rocrand to proceed ...")
1410-
endif(rocrand_FOUND)
1411-
1412-
find_package(composable_kernel)
1413-
if(composable_kernel_FOUND)
1414-
message(STATUS "composable-kernel found")
1415-
set(CK_INCLUDE_DIR ${INTERFACE_INCLUDE_DIRECTORIES})
1416-
else() #If composable-kernel not found
1417-
message(FATAL_ERROR "composable-kernel not found !!! Install composable-kernel to proceed ...")
1418-
endif(composable-kernel_FOUND)
1419-
14201376
target_include_directories(torch_hip PRIVATE
14211377
${ROCM_SOURCE_DIR}/include
14221378
${ROCM_SOURCE_DIR}/hcc/include
14231379
${ROCM_SOURCE_DIR}/rocblas/include
14241380
${ROCM_SOURCE_DIR}/hipsparse/include
14251381
${ROCM_SOURCE_DIR}/include/rccl/
1426-
${AOTRITON_INCLUDE_DIR}
1427-
${ROCTHRUST_INCLUDE_DIR}
1428-
${ROCPRIM_INCLUDE_DIR}
1429-
${ROCRAND_INCLUDE_DIR}
1430-
${HIPCUB_INCLUDE_DIR}
1431-
${CK_INCLUDE_DIR}
14321382
)
14331383
if(USE_FLASH_ATTENTION)
14341384
target_compile_definitions(torch_hip PRIVATE

0 commit comments

Comments
 (0)