Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 0 additions & 11 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -61,17 +61,6 @@ endif()
include(CheckIncludeFile)
check_include_file(sys/resource.h THORIN_ENABLE_RLIMITS)

if (NOT TARGET shady)
find_package(shady CONFIG)
if (shady_FOUND)
message(STATUS "Found shady at ${shady_DIR}")
set(THORIN_ENABLE_SHADY TRUE)
endif()
else()
export(TARGETS shady api FILE ${CMAKE_BINARY_DIR}/share/anydsl/cmake/shady-exports.cmake)
set(THORIN_ENABLE_SHADY TRUE)
endif()

find_package(SPIRV-Headers)
if (SPIRV-Headers_FOUND)
message(STATUS "Found SPIRV-Headers at ${SPIRV-Headers_DIR}")
Expand Down
1 change: 0 additions & 1 deletion cmake/thorin-config.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ find_package(Half REQUIRED)
set(Thorin_HAS_JSON_SUPPORT @THORIN_ENABLE_JSON@)
set(Thorin_HAS_LLVM_SUPPORT @LLVM_FOUND@)
set(Thorin_HAS_RV_SUPPORT @RV_FOUND@)
set(Thorin_HAS_SHADY_SUPPORT @THORIN_ENABLE_SHADY@)
set(Thorin_HAS_SPIRV_SUPPORT @THORIN_ENABLE_SPIRV@)
set(AnyDSL_LLVM_LINK_SHARED @AnyDSL_LLVM_LINK_SHARED@)

Expand Down
14 changes: 0 additions & 14 deletions src/thorin/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -112,12 +112,6 @@ if(LLVM_FOUND)
)
endif()

if (THORIN_ENABLE_SHADY)
list(APPEND THORIN_SOURCES
be/shady/shady.cpp
)
endif()

if(THORIN_ENABLE_JSON)
list(APPEND THORIN_SOURCES
be/json/json.cpp
Expand Down Expand Up @@ -149,14 +143,6 @@ if(LLVM_FOUND)
llvm_config(thorin ${AnyDSL_LLVM_LINK_SHARED} ${Thorin_LLVM_COMPONENTS})
endif()

if (THORIN_ENABLE_SHADY)
if (shady_FOUND)
target_link_libraries(thorin PRIVATE shady::shady)
else()
target_link_libraries(thorin PRIVATE shady)
endif()
endif()

if(THORIN_ENABLE_JSON)
target_link_libraries(thorin PRIVATE nlohmann_json::nlohmann_json)
endif()
21 changes: 0 additions & 21 deletions src/thorin/be/codegen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,6 @@
#include "thorin/be/llvm/amdgpu_pal.h"
#endif

#if THORIN_ENABLE_SHADY
#include "thorin/be/shady/shady.h"
#undef empty
#undef nodes
#endif

#if THORIN_ENABLE_SPIRV
#include "thorin/be/spirv/spirv.h"
#endif
Expand Down Expand Up @@ -197,18 +191,6 @@ struct NVVMBackend : public Backend {
};
#endif

#if THORIN_ENABLE_SHADY
struct ShadyBackend : public Backend {
explicit ShadyBackend(DeviceBackends2& b, World& src) : Backend(b, src) {
b.register_intrinsic(Intrinsic::ShadyCompute, get_gpu_kernel_config);
}

std::unique_ptr<CodeGen> create_cg(const Cont2Config& config) override {
return std::make_unique<shady_be::CodeGen>(device_code_, config, backends_.debug());
}
};
#endif

struct HLSBackend : public Backend {
explicit HLSBackend(DeviceBackends& b, World& src, std::string& hls_flags) : Backend(b, src), hls_flags_(hls_flags) {
b.register_intrinsic(Intrinsic::HLS, *this, [&](const App* app, Continuation* imported) {
Expand Down Expand Up @@ -265,9 +247,6 @@ DeviceBackends::DeviceBackends(thorin::World& world, int opt, bool debug, std::s
register_backend(std::make_unique<AMDPALBackend>(*this, world));
register_backend(std::make_unique<NVVMBackend>(*this, world));
#endif
#if THORIN_ENABLE_SHADY
register_backend(std::make_unique<ShadyBackend>(*this, world))
#endif
#if THORIN_ENABLE_SPIRV
register_backend(std::make_unique<OpenCLSPIRVBackend>(*this, world));
register_backend(std::make_unique<LevelZeroSPIRVBackend>(*this, world));
Expand Down
1 change: 0 additions & 1 deletion src/thorin/be/llvm/llvm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1310,7 +1310,6 @@ std::vector<llvm::Value*> CodeGen::emit_intrinsic(llvm::IRBuilder<>& irbuilder,
case Intrinsic::LevelZero_SPIRV: runtime_->emit_host_code(*this, irbuilder, Platform::LEVEL_ZERO_PLATFORM, ".spv", continuation); break;
case Intrinsic::AMDGPUHSA: runtime_->emit_host_code(*this, irbuilder, Platform::HSA_PLATFORM, ".amdgpu", continuation); break;
case Intrinsic::AMDGPUPAL: runtime_->emit_host_code(*this, irbuilder, Platform::PAL_PLATFORM, ".amdgpu", continuation); break;
case Intrinsic::ShadyCompute: runtime_->emit_host_code(*this, irbuilder, Platform::SHADY_PLATFORM, ".shady", continuation); break;
case Intrinsic::HLS: emit_hls(irbuilder, continuation); break;
case Intrinsic::Parallel: emit_parallel(irbuilder, continuation); break;
case Intrinsic::Fibers: emit_fibers(irbuilder, continuation); break;
Expand Down
1 change: 0 additions & 1 deletion src/thorin/be/runtime.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ enum Platform {
HSA_PLATFORM,
PAL_PLATFORM,
LEVEL_ZERO_PLATFORM,
SHADY_PLATFORM,
};

enum KernelLaunchArgs {
Expand Down
Loading