gfx906 compat build: s26_tsum.cuh takes its AMD branch only on gfx10+ (permlanex16 / DPP), device_free_bytes skips the integrated-GPU attribute the compat layer lacks
Compile check on ROCm 7.14.1 (Aurora): f-140 itself stops in fused_gr.cu (12 errors) and mtp.cpp (2) for gfx906 there; with this commit the port adds no error of its own (fused_gr.cu's pre-existing ones remain).
This commit is contained in:
1 parent
92dc6f1de8
commit
a751fbb128
3 files changed
+5
-3
No files matched your search
@@ -28,7 +28,7 @@ namespace strata::core {
|
||||
size_t device_free_bytes() {
|
||||
size_t free_b = 0, total_b = 0;
|
||||
cudaMemGetInfo(&free_b, &total_b);
|
||||
#if defined(__linux__)
|
||||
#if defined(__linux__) && !defined(STRATA_HIP_GFX906) // (the gfx906 compat layer has no cudaDevAttrIntegrated; that GPU is discrete)
|
||||
// per device: a box can mix an integrated GPU (an APU) with a discrete one, and the answer is the CURRENT device's
|
||||
static std::atomic<int> uma_cache[64]; // 0 unknown, 1 integrated (unified memory), 2 discrete
|
||||
bool unified_memory = false;
|
||||
|
||||
Reference in new issue
Block a user