File tree 4 files changed +9
-29
lines changed
4 files changed +9
-29
lines changed Original file line number Diff line number Diff line change @@ -121,11 +121,8 @@ if __name__ == "__main__":
121
121
122
122
int main (int argc, char** argv)
123
123
{
124
- // First we initialize Legate and cuPyNumeric
125
- int32_t errcode = legate::start(argc, argv);
126
- if (errcode != 0) {
127
- throw std::runtime_error("legate::start() errorcode: " + std::to_string(errcode));
128
- }
124
+ // First we initialize Legate use either ` legate ` or ` LEGATE_CONFIG ` to customize launch
125
+ legate::start();
129
126
130
127
// Then let's create a new logical column
131
128
legate::dataframe::LogicalColumn col_a = legate::dataframe::sequence(20, -10);
Original file line number Diff line number Diff line change 24
24
#include < legate_dataframe/parquet.hpp>
25
25
#include < legate_dataframe/unaryop.hpp>
26
26
27
- int main (int argc, char ** argv )
27
+ int main (void )
28
28
{
29
- // First we initialize Legate
30
- int32_t errcode = legate::start (argc, argv);
31
- if (errcode != 0 ) {
32
- throw std::runtime_error (" legate::start() errorcode: " + std::to_string (errcode));
33
- }
29
+ // First we initialize Legate use either `legate` or `LEGATE_CONFIG` to customize launch
30
+ legate::start ();
34
31
35
32
// Then let's create a new logical column
36
33
legate::dataframe::LogicalColumn col_a = legate::dataframe::sequence (20 , -10 );
Original file line number Diff line number Diff line change 22
22
23
23
int main (int argc, char ** argv)
24
24
{
25
- // First we initialize Legate
26
- int32_t errcode = legate::start (argc, argv);
27
- if (errcode != 0 ) {
28
- throw std::runtime_error (" legate::start() errorcode: " + std::to_string (errcode));
29
- }
25
+ // First we initialize Legate use either `legate` or `LEGATE_CONFIG` to customize launch
26
+ legate::start ();
30
27
31
28
// Then let's create a new logical column
32
29
legate::dataframe::LogicalColumn col_a = legate::dataframe::sequence (10 , 0 );
Original file line number Diff line number Diff line change 19
19
20
20
class Environment : public ::testing::Environment {
21
21
public:
22
- Environment (int argc, char ** argv) : argc_(argc), argv_(argv) {}
23
-
24
- void SetUp () override
25
- {
26
- const char * argv[] = {" ./test" , " --gpus" , " 2" }; // TODO: make configurable
27
- int argc = 3 ;
28
- EXPECT_EQ (legate::start (argc, (char **)argv), 0 );
29
- }
22
+ void SetUp () override { legate::start (); }
30
23
void TearDown () override { EXPECT_EQ (legate::finish (), 0 ); }
31
-
32
- private:
33
- int argc_;
34
- char ** argv_;
35
24
};
36
25
37
26
int main (int argc, char ** argv)
38
27
{
39
28
::testing::InitGoogleTest (&argc, argv);
40
- ::testing::AddGlobalTestEnvironment (new Environment(argc, argv ));
29
+ ::testing::AddGlobalTestEnvironment (new Environment());
41
30
return RUN_ALL_TESTS ();
42
31
}
You can’t perform that action at this time.
0 commit comments