Skip to content

Commit

Permalink
Major dependency upgrade - python 3.x and jupyter 7 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
Mani-D committed Jun 9, 2024
1 parent ce0811c commit 343e718
Show file tree
Hide file tree
Showing 36 changed files with 733 additions and 297 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [2.7, 3.8]
python-version: [3.8]

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
Expand Down
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ install(TARGETS xpedite-pic DESTINATION "lib" COMPONENT libraries)

######################### Python bindings #############################

set(PYBIND11_PYTHON_VERSION 3.8 CACHE STRING "")
find_package(pybind11 REQUIRED)
pybind11_add_module(xpediteBindings lib/xpedite/pybind/Bindings.cpp lib/xpedite/framework/SamplesLoader.C)
install(TARGETS xpediteBindings DESTINATION "lib" COMPONENT libraries)
Expand Down
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ BUILD_TYPE=Release
BUILD_VIVIFY=0
BUILD_JAVA=0
VERBOSE=0
PYTHON_VERSION=2.7
PYTHON_VERSION=3.8

while true ; do
case "$1" in
Expand Down
3 changes: 0 additions & 3 deletions demo/Demo.H
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,6 @@ namespace xpedite { namespace demo {
using Indices = std::array<uint64_t, indexSize>;

inline void initialize(size_t core_ = 0) {
if(mlockall(MCL_CURRENT | MCL_FUTURE)) {
std::cerr << "failed to mlock all pages" << std::endl;
}
using namespace xpedite::framework;
if(!xpedite::framework::initialize("xpedite-appinfo.txt", {AWAIT_PROFILE_BEGIN})) {
throw std::runtime_error {"failed to init xpedite"};
Expand Down
1 change: 1 addition & 0 deletions include/xpedite/probes/CallSite.H
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

#pragma once
#include <sstream>
#include <cstdint>

namespace xpedite { namespace probes {

Expand Down
1 change: 1 addition & 0 deletions include/xpedite/probes/ProbeKey.H
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

#pragma once
#include <string>
#include <cstdint>

namespace xpedite { namespace probes {

Expand Down
2 changes: 1 addition & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ fi
eval set -- "$ARGS"
ENABLE_PMU=0
VERBOSE=0
PYTHON_VERSION=2
PYTHON_VERSION=3

while true ; do
case "$1" in
Expand Down
4 changes: 2 additions & 2 deletions jni/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ sourceSets {
}

task xpediteJar(type: Jar) {
baseName = 'xpedite'
archiveBaseName = 'xpedite'
exclude(['**/demo/**'])
manifest {
attributes(
Expand All @@ -42,7 +42,7 @@ task xpediteJar(type: Jar) {
task demoJar(type: Jar) {
include(['**/demo/**'])
exclude(['**/com/xpedite/probes'])
baseName = 'xpediteDemo'
archiveBaseName = 'xpediteDemo'
manifest {
attributes(
'Implementation-Title': 'Xpedite Demo Jar',
Expand Down
1 change: 1 addition & 0 deletions lib/xpedite/framework/StorageMgr.H
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

#pragma once
#include <string>
#include <cstdint>

namespace xpedite { namespace framework {

Expand Down
Loading

0 comments on commit 343e718

Please sign in to comment.