Skip to content

Commit

Permalink
add ge-24 compat modules
Browse files Browse the repository at this point in the history
Signed-off-by: Jade Abraham <[email protected]>
  • Loading branch information
jabraham17 committed Feb 5, 2025
1 parent a60c66f commit 92e473a
Show file tree
Hide file tree
Showing 7 changed files with 42 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -527,8 +527,12 @@ ifeq ($(shell expr $(CHPL_MINOR) \= 2),1)
ARKOUDA_COMPAT_MODULES += -M $(ARKOUDA_SOURCE_DIR)/compat/eq-22
endif

ifeq ($(shell expr $(CHPL_MINOR) \>= 3),1)
ARKOUDA_COMPAT_MODULES += -M $(ARKOUDA_SOURCE_DIR)/compat/ge-23
ifeq ($(shell expr $(CHPL_MINOR) \= 3),1)
ARKOUDA_COMPAT_MODULES += -M $(ARKOUDA_SOURCE_DIR)/compat/eq-23
endif

ifeq ($(shell expr $(CHPL_MINOR) \>= 4),1)
ARKOUDA_COMPAT_MODULES += -M $(ARKOUDA_SOURCE_DIR)/compat/ge-24
endif

ifeq ($(shell expr $(CHPL_MINOR) \>= 2),1)
Expand Down
8 changes: 8 additions & 0 deletions src/compat/eq-23/ArkoudaPythonCompat.chpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
module ArkoudaPythonCompat {
proc pythonModuleSupported param do return false;

class Interpreter {}
class Value {}
class Function: Value {}
class Module: Value {}
}
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions src/compat/ge-24/ArkoudaSortCompat.chpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module ArkoudaSortCompat {
public use Sort;
}
25 changes: 25 additions & 0 deletions src/compat/ge-24/ArkoudaSparseMatrixCompat.chpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
module ArkoudaSparseMatrixCompat {
use CompressedSparseLayout;
import SparseMatrix.SpsMatUtil.Layout;
use BlockDist;

proc getSparseDom(param layout: Layout) {
select layout {
when Layout.CSR do return new csrLayout();
when Layout.CSC do return new cscLayout();
}
}

// see: https://github.com/chapel-lang/chapel/issues/26209
proc getDenseDom(dom, localeGrid, param layout: Layout) {
if layout == Layout.CSR {
return dom dmapped new blockDist(boundingBox=dom,
targetLocales=localeGrid,
sparseLayoutType=csrLayout);
} else {
return dom dmapped new blockDist(boundingBox=dom,
targetLocales=localeGrid,
sparseLayoutType=cscLayout);
}
}
}

0 comments on commit 92e473a

Please sign in to comment.