DBM: MAX_BATCH_SIZE 10000 -> 30000 (#3890)

- MAX_BATCH_SIZE tuned on CPUs assuming GPUs benefit even more.
- Driver/Makefile/HIP: missing object file/compilation.
This commit is contained in:
Hans Pabst 2025-01-27 08:49:47 +01:00 committed by GitHub
parent 2b6cf0497c
commit 062e9bb49d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View file

@ -91,10 +91,10 @@ endif
all: dbm_miniapp.x
clean:
rm -fv *.o ../offload/*.o $(OPENCL_GENKRNL)
rm -fv $(ALL_OBJECTS) $(OPENCL_GENKRNL)
realclean: clean
rm -fv *.x
rm -fv dbm_miniapp.x
# Enable OpenCL when DBCSR library was prebuilt (assume __DBCSR_ACC).
@ -169,7 +169,7 @@ endif
# Enable HIP/ROCm when hipcc compiler is present.
else ifneq ($(HIPCC),)
ALL_OBJECTS += dbm_multiply_gpu.o
ALL_OBJECTS += dbm_multiply_gpu.o dbm_multiply_gpu_kernel.o
CFLAGS += -I${ROCM_PATH}/include -D__OFFLOAD_HIP -D__HIP_PLATFORM_AMD__
LIBS += -L${ROCM_PATH}/lib -lamdhip64 -lhipfft -lhipblas -lrocblas

View file

@ -13,7 +13,7 @@
#define HASHTABLE_FACTOR 3.0
#define ALLOCATION_FACTOR 1.5
#define SHARDS_PER_THREAD 1.0
#define MAX_BATCH_SIZE 10000
#define MAX_BATCH_SIZE 30000
#define BATCH_NUM_BUCKETS 1000
#define INITIAL_NBLOCKS_ALLOCATED 100
#define INITIAL_DATA_ALLOCATED 1024